sjm.examples.track
Class TrackException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--sjm.examples.track.TrackException
- public class TrackException
- extends java.lang.RuntimeException
Signals that a parser could not match text after
a specific point.
- See Also:
- Serialized Form
|
Field Summary |
protected java.lang.String |
after
|
protected java.lang.String |
expected
|
protected java.lang.String |
found
|
|
Constructor Summary |
TrackException(java.lang.String after,
java.lang.String expected,
java.lang.String found)
Constructs a TrackException with the
specified reasons for the exception. |
|
Method Summary |
java.lang.String |
getAfter()
Returns some indication of what text was interpretable. |
java.lang.String |
getExpected()
Returns some indication of what kind of thing was
expected, such as a ')' token. |
java.lang.String |
getFound()
Returns the text element the thrower actually found when
it expected something else. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace,
getLocalizedMessage,
getMessage,
printStackTrace,
printStackTrace,
printStackTrace,
toString |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
after
protected java.lang.String after
expected
protected java.lang.String expected
found
protected java.lang.String found
TrackException
public TrackException(java.lang.String after,
java.lang.String expected,
java.lang.String found)
- Constructs a
TrackException with the
specified reasons for the exception.
- Parameters:
after - an indication of what text was parsedexpected - an indication of what kind of thing
was expected, such as a ')' tokenfound - the text the thrower actually found
getAfter
public java.lang.String getAfter()
- Returns some indication of what text was interpretable.
- Returns:
- some indication of what text was interpretable
getExpected
public java.lang.String getExpected()
- Returns some indication of what kind of thing was
expected, such as a ')' token.
- Returns:
- some indication of what kind of thing was
expected, such as a ')' token
getFound
public java.lang.String getFound()
- Returns the text element the thrower actually found when
it expected something else.
- Returns:
- the text element the thrower actually found
when it expected something else