|
September 19, 2002 Creating and Throwing Error Object Exceptions Tips: September 2002
Yehuda Shiran, Ph.D.
|
|
The simplest form of an exception is the string. You just throw a string from a try or a catch block, to be caught by a catch block at the same or higher level of try...catch nesting. For example, you can throw the error message "Error 325 from inner try block" as an exception.
But JScript .NET supports a more structured exception: the
where:
You can create a new
To learn more about exception handling, go to Column 118, JScript .NET, Part XII: Exception Handling.
People who read this tip also read these tips: Look for similar tips by subject: |