joperties.exceptions
Class InterpretationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by joperties.exceptions.JopertiesException
              extended by joperties.exceptions.InterpretationException
All Implemented Interfaces:
java.io.Serializable

public class InterpretationException
extends JopertiesException

This exception is thrown when an interpretation failed by an interpreter.

Author:
Savvas Dalkitsis
See Also:
Serialized Form

Field Summary
private  AbstractInterpreter<?> interpreter
          This is the interpreter that failed.
private static long serialVersionUID
           
private  java.lang.String string
          This is the string that the interpreter failed to interpret.
 
Constructor Summary
InterpretationException(AbstractInterpreter<?> interpreter, java.lang.String string)
          Constructs the exception.
 
Method Summary
 AbstractInterpreter<?> getInterpreter()
          This method returns the interpreter that failed.
 java.lang.String getString()
          This method returns the string that failed to be interpreted.
 
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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

interpreter

private AbstractInterpreter<?> interpreter
This is the interpreter that failed.


string

private java.lang.String string
This is the string that the interpreter failed to interpret.

Constructor Detail

InterpretationException

public InterpretationException(AbstractInterpreter<?> interpreter,
                               java.lang.String string)
Constructs the exception. Takes as parameters the interpreter that failed and the string that failed to be interpreted.

Parameters:
interpreter - The interpreter that failed.
string - The string that the interpreter failed to interpret.
Method Detail

getInterpreter

public AbstractInterpreter<?> getInterpreter()
This method returns the interpreter that failed.

Returns:
The interpreter that failed.

getString

public java.lang.String getString()
This method returns the string that failed to be interpreted.

Returns:
The string that failed to be interpreted.