Forum Discussion

kalldrexx's avatar
kalldrexx
Contributor
15 years ago

C# API shouldn't throw generic Exceptions

I would *really* appreciate it if the C# API for test complete did not throw generic Exceptions all the time.  It makes it really hard to figure out at run-time why an exception happened and handle it correctly, and thus I don't even know if TC is the cause of the exception or if .Net threw the exception.



It would be really good if it threw custom exception types (like all .net software should).  Hell I would even take throwing an InvalidOperationException.  Right now it's just ridiculous.

1 Reply

  • AlexKaras's avatar
    AlexKaras
    Icon for Champion Level 1 rankChampion Level 1
    Hi Matthew,



    As it is mentioned in the TestComplete help, C# script in TestComplete has nothing common with .Net and actually  is a JScript with decorated syntax to make it possible to create Connected C# applications.So, this is not TC throwing generic exceptions, but MS JScript runtime hosted by OS.