org.metasyntactic.text
Class ParseException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--org.metasyntactic.text.ParseException
- All Implemented Interfaces:
- java.io.Serializable
- public class ParseException
- extends java.lang.Exception
A ParseException occurs when a parser is unable to match the inputsource to
the grammar it is trying to match. However, in certain cases, even though
a parse exception occurred the parser can make a best guess as to what the
correct parse should have resulted in. In this case, the parser is allowed
to place that result in the exception so that the handler can deal with it
- See Also:
- Serialized Form
|
Constructor Summary |
ParseException()
Creates new ParseException without detail message. |
ParseException(java.lang.String msg)
Constructs an ParseException with the specified detail message. |
ParseException(java.lang.String msg,
java.lang.Object guess)
|
|
Method Summary |
java.lang.Object |
getGuess()
|
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ParseException
public ParseException()
- Creates new
ParseException without detail message.
ParseException
public ParseException(java.lang.String msg)
- Constructs an
ParseException with the specified detail message.
- Parameters:
msg - the detail message.
ParseException
public ParseException(java.lang.String msg,
java.lang.Object guess)
getGuess
public java.lang.Object getGuess()