public final class Catch1<T> extends java.lang.Object implements Catch<T>, java.io.Serializable
| Constructor and Description |
|---|
Catch1(T target)
Create a Catch1 object.
|
| Modifier and Type | Method and Description |
|---|---|
Parser<T> |
catchException(java.lang.Object v,
java.lang.Object e)
if e is the same as the target object that this Catch object is expecting,
it recovers the parser and make v the current return value.
|
public Catch1(T target)
target - the expected target exception object.public Parser<T> catchException(java.lang.Object v, java.lang.Object e)
catchException in interface Catch<T>v - the return value of the exceptional parser.e - the exception thrown.Catch.catchException(java.lang.Object, java.lang.Object)