|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Implementations of ErrorHandler are used to seperate handling of runtime errors from the code where the error occured. A section of code can catch Error objects and redirect them to an ErrorHandler for processing instead of directly handling them or allowing them to halt execution and propagate up the stack.
It is important that the ThreadDeath subclass of Error receive special attention by any code that catches Errors. ThreadDeath should be rethrown to ensure that Threads actually die.
Method Summary | |
void |
handle(java.lang.Error er)
Handles an Error and does not rethrow it when it's finished handling it. |
Method Detail |
public void handle(java.lang.Error er)
er
- the Error to handle
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |