public interface ErrorHandler
handleError(Throwable)
method is invoked on the first error handler. There are three outcomes:
Modifier and Type | Method and Description |
---|---|
boolean |
handleError(Throwable t)
Handle an error.
|
boolean handleError(Throwable t) throws Throwable
true
should be returned. If false
is returned
it indicates that this error handled doesn't know how to handle the
error. The caller should try another error handler or throw an exception.t
- The error to handleThrowable
- If the error is final and can't be solved