public class SimpleErrorHandler extends Object implements ErrorHandler
Modifier and Type | Field and Description |
---|---|
private boolean |
ignoreAllErrors |
Constructor and Description |
---|
SimpleErrorHandler(boolean ignoreAllErrors)
Create a new simple error handler.
|
Modifier and Type | Method and Description |
---|---|
boolean |
handleError(Throwable t)
Return TRUE if all errors should be ignored, otherwise re-throw the
throwable.
|
public SimpleErrorHandler(boolean ignoreAllErrors)
ignoreAllErrors
- TRUE to ignore all errors, FALSE to re-throw thempublic boolean handleError(Throwable t) throws Throwable
handleError
in interface ErrorHandler
t
- The error to handleThrowable
- If the error is final and can't be solved