|
September 16, 2002 Throwing Exceptions to the System Tips: September 2002
Yehuda Shiran, Ph.D.
|
|
If you omit the catch block, the system will catch the thrown exception and will attempt to open an application of your choice for debugging the error. The following code sample includes an inner try...catch...finally statement embedded inside the try block of an outer try...finally statement. Notice that the outer statement does not have a catch block:
Here is the window you would get:
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: |