Lecture overview -- Keyboard shortcut: 'u'  Previous page: Rethrowing an exception -- Keyboard shortcut: 'p'  Next page: Comparison with exception handling in Java -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Alphabetic index  Help page about these notes  Course home    Exception Handling - slide 26 : 30

Raising an exception in an exception handler
Inside a handler, you can either rethrow an exception or raise/throw a new exception
prog.cs
Raising and throwing a new exception.
output
Output from the program that raises a new exception.
prog.cs
Raising and throwing a new exception, propagating original inner exception.
output
Output from the program that raises a new exception, with inner exception.