com.mcdermottroe.exemplar.input
Class LexerException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.mcdermottroe.exemplar.Exception
              extended by com.mcdermottroe.exemplar.input.LexerException
All Implemented Interfaces:
Copyable<Exception>, Serializable, Comparable<Exception>

public class LexerException
extends Exception

An Exception that can be thrown during lexical analysis of some input.

Since:
0.1
See Also:
Serialized Form

Constructor Summary
LexerException()
          LexerException without a description.
LexerException(String message)
          LexerException with a description.
LexerException(String message, Throwable cause)
          LexerException with a description and a reference to an exception which caused it.
LexerException(Throwable cause)
          LexerException with a reference to the exception that caused it.
 
Method Summary
 LexerException getCopy()
          Creates a deep copy of the current object and returns it.
 
Methods inherited from class com.mcdermottroe.exemplar.Exception
compareTo, copyStackTrace, equals, getBackTrace, hashCode, toString
 
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, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LexerException

public LexerException()
LexerException without a description.


LexerException

public LexerException(String message)
LexerException with a description.

Parameters:
message - The description of the exception.

LexerException

public LexerException(String message,
                      Throwable cause)
LexerException with a description and a reference to an exception which caused it.

Parameters:
message - The description of the exception.
cause - The cause of the exception.

LexerException

public LexerException(Throwable cause)
LexerException with a reference to the exception that caused it.

Parameters:
cause - The cause of the exception.
Method Detail

getCopy

public LexerException getCopy()
Creates a deep copy of the current object and returns it.

Returns:
A deep copy of the current object.