|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pf.util.ExceptionIgnorer
public class ExceptionIgnorer
An abstract superclass that provides an instance variable to hold an optional ExceptionHandler. It also implements a method handleException() that uses the exception handler, if it is not null.
| Constructor Summary | |
|---|---|
ExceptionIgnorer()
Initialize the new instance with default values. |
|
ExceptionIgnorer(ExceptionHandler handler)
Initialize the new instance with an exception handler. |
|
| Method Summary | |
|---|---|
void |
exceptionOccurred(java.lang.Throwable exception)
Can be called for all exceptions that should be handled in the same way. |
ExceptionHandler |
getExceptionHandler()
Returns the exception handler currently in use. |
void |
setExceptionHandler(ExceptionHandler exHandler)
Sets the exception handler. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExceptionIgnorer()
public ExceptionIgnorer(ExceptionHandler handler)
| Method Detail |
|---|
public ExceptionHandler getExceptionHandler()
public void setExceptionHandler(ExceptionHandler exHandler)
exHandler - The new exception handler (might be null)public void exceptionOccurred(java.lang.Throwable exception)
exception - The occurred exception to be handled somehow
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||