edu.iu.cnets.klatsch.exception
Class ParserException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by edu.iu.cnets.klatsch.exception.KlatschException
              extended by edu.iu.cnets.klatsch.exception.ParserException
All Implemented Interfaces:
java.io.Serializable

public class ParserException
extends KlatschException

This class supports exception handling for problems at the parser level.

See Also:
Serialized Form

Field Summary
(package private)  java.lang.String message
          the error message
private static long serialVersionUID
          make Eclipse happy
(package private)  TokenException tokenError
          possible contextual information on this error
 
Constructor Summary
ParserException(java.lang.String message)
          Initializes without an underlying TokenException.
ParserException(TokenException tokenError, java.lang.String message)
          Initializes with a tokenization problem and an error message.
 
Method Summary
 java.lang.String toString()
          Converts the exception to a printable form.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
make Eclipse happy

See Also:
Constant Field Values

message

java.lang.String message
the error message


tokenError

TokenException tokenError
possible contextual information on this error

Constructor Detail

ParserException

public ParserException(java.lang.String message)
Initializes without an underlying TokenException.

Parameters:
message - the error message

ParserException

public ParserException(TokenException tokenError,
                       java.lang.String message)
Initializes with a tokenization problem and an error message.

Parameters:
tokenError - the tokenization error
message - the error message
Method Detail

toString

public java.lang.String toString()
Converts the exception to a printable form.

Overrides:
toString in class java.lang.Throwable
Returns:
the error message