public class ExceptionIgnorer
extends java.lang.Object
Constructor and Description |
---|
ExceptionIgnorer()
Initialize the new instance with default values.
|
ExceptionIgnorer(ExceptionHandler handler)
Initialize the new instance with an exception handler.
|
Modifier and Type | Method and Description |
---|---|
protected ExceptionHandler |
exceptionHandler() |
protected void |
exceptionHandler(ExceptionHandler newValue) |
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.
|
public ExceptionIgnorer()
public ExceptionIgnorer(ExceptionHandler handler)
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 somehowprotected ExceptionHandler exceptionHandler()
protected void exceptionHandler(ExceptionHandler newValue)