Class ParseException

All Implemented Interfaces:

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
          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

Constructor Detail


public ParseException()
Creates new ParseException without detail message.


public ParseException(java.lang.String msg)
Constructs an ParseException with the specified detail message.

msg - the detail message.


public ParseException(java.lang.String msg,
                      java.lang.Object guess)
Method Detail


public java.lang.Object getGuess()