First page Back Continue Last page Graphics
13.5 Rethrowing an Exception
Rethrowing exceptions
- Use when exception handler cannot process exception
- Can still rethrow if handler did some processing
- Can rethrow exception to another handler
- Goes to next enclosing try block
- Corresponding catch blocks try to handle
To rethrow
- Use statement "throw;"
- No arguments
- Terminates function