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

  • Unable to Navigate to Code Line from Log Messages

    2 days ago
    nelsonbritto
  • Microsoft Access Database Engine 2016 Redistributable is no longer supported

    2 days ago
    dntjns3
  • Storing JUnit XML while the testing is running

    3 days ago
    TestQA1
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