Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: Raise a custom exception

$
0
0
That's correct.

ClearScript doesn't expose managed exceptions directly to script-based handlers. The best approach is to catch managed exceptions in managed code and pass them to script code for analysis. This thread includes sample code for doing so.

Similarly, it's best to catch script exceptions in script code and pass them to the host if necessary. You can find an example here.

Cheers!

Viewing all articles
Browse latest Browse all 2297

Latest Images

Trending Articles





Latest Images