net.sf.parcinj
Class ParsingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.sf.parcinj.ParsingException
All Implemented Interfaces:
java.io.Serializable

public class ParsingException
extends java.lang.RuntimeException

Exception thrown if a parser error occurred. With getInvalidToken() the token causing the exception can accessed. The exception message contains the following informations:

If the reason is a Throwable thrown by a Processor it can be accessed by Throwable.getCause().

See Also:
Serialized Form

Method Summary
 Token getInvalidToken()
          Returns the token causing this exception.
 
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
 

Method Detail

getInvalidToken

public final Token getInvalidToken()
Returns the token causing this exception.