public interface Catcher<S>
Subtype implementers note: if adding catch methods, bear in mind that dispatch is decided according to formal parameter type at compile time; not actual type at runtime - unlike catch statement parameters. Best to use a new, distinct name for each new method; rather than overload the ones defined here.
Modifier and Type | Interface and Description |
---|---|
static class |
Catcher.U
Catcher utilities.
|
Modifier and Type | Method and Description |
---|---|
void |
catchError(S source,
Error r)
Handles an error.
|
void |
catchException(S source,
Exception x)
Handles an exception.
|
void catchError(S source, Error r)
source
- The logical source of the error.void catchException(S source, Exception x)
source
- The logical source of the exception.