This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: • a catch can only have a single argument (can’t use comma seperated arguments) • You can not handle the same type of error in two different catch blocks associated with a particular try block • Placing catch( Exception e ) before other catch blocks prevents other (specific) types of exceptions from being executed; catch( Exception e ) should always be placed last in the list of exception handlers following a try block Rethrowing an Exception A catch handler that catches an exception may determine that it can not handle that error well and it may allow another catch handler to deal with the problem. In these cases, the handler can rethrow the exception to the next enclosing try block by (even if it has processed it a bit) : throw e;...
View Full Document
- Winter '07
- Subroutine, Throwable