jfun.parsec
public final class Catch1<T> extends Object implements Catch<T>, Serializable
Constructor Summary | |
---|---|
Catch1(T target)
Create a Catch1 object. |
Method Summary | |
---|---|
Parser<T> | catchException(Object v, 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. |
Parameters: target the expected target exception object.
See Also: Catch