S
- type of the source where the error was generated.E
- type of the error descriptor.public interface ErrorHandler<S,E>
Note: You generally don't catch Throwable. Throwable is the superclass to Exception and Error. Errors are generally things which a normal application wouldn't and shouldn't catch, so just use Exception unless you have a specific reason to use Throwable.
Modifier and Type | Method and Description |
---|---|
void |
errorOccurred(S source,
E error)
Method called to delegate error handling.
|
Copyright © 2015. All Rights Reserved.