| 
 
 | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Catcher<S>
A catcher of errors and exceptions.
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.
| Nested Class Summary | |
|---|---|
static class | 
Catcher.X
Catcher utilities.  | 
| Method Summary | |
|---|---|
 void | 
catchError(S source,
                     Error r)
Handles an error.  | 
 void | 
catchException(S source,
                             Exception x)
Handles an exception.  | 
| Method Detail | 
|---|
void catchError(S source,
                Error r)
source - logical source of the error
void catchException(S source,
                    Exception x)
source - logical source of the exception
  | 
 
 | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||