Skip to contentBrand Logo
RegisterSign In
  1. SmartBear Community
  2. TestComplete
  3. TestComplete Questions

Forum Discussion

Adam_Zehavi's avatar
Adam_Zehavi
Occasional Contributor
16 years ago

How to raise an exception in C# script

How can I raise and throw an Exception in C# script... Adam.
YMinaev's avatar
YMinaev
Icon for Staff rankStaff
16 years ago
Hi,



Use the throw statement.

Recent Discussions

  • Send Request Operation - Response Body?

    5 days ago
    rachellawrence
  • Elements detected, clicked in wrong location with Chrome

    5 days ago
    erikgt
  • Latency and Device Disconnect Issues in Test Complete Mobile Testing

    6 days ago
    M_Sai_Sravani
Related Content
  • WaitAliasChild raises an exception if child doesn't exist

    13 years ago
    simon_glet
  • Throwing exceptions in script extensions

    11 years ago
    k_de_boer03
  • How to raise an exception in scripts?

    16 years ago
    oychw
© 2025 SmartBear Software. All Rights Reserved.
  • Privacy
  • |
  • Terms of Use
  • |
  • Site Map
  • |
  • Website Terms of Use
  • |
  • Security
  • |
  • Community Terms of Service