joperties.exceptions
Class EncodingException

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

public class EncodingException
extends JopertiesException

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

Author:
Savvas Dalkitsis
See Also:
Serialized Form

Field Summary
private  AbstractInterpreter<?> interpreter
          This is the interpreter that failed.
private  java.lang.Object obj
          This is the object that the interpreter failed to encode.
private static long serialVersionUID
           
 
Constructor Summary
EncodingException(AbstractInterpreter<?> interpreter, java.lang.Object obj)
          Constructs the exception.
 
Method Summary
 AbstractInterpreter<?> getInterpreter()
          This method returns the interpreter that failed.
 java.lang.Object getObject()
          This method returns the object that failed to be encoded.
 
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.


obj

private java.lang.Object obj
This is the object that the interpreter failed to encode.

Constructor Detail

EncodingException

public EncodingException(AbstractInterpreter<?> interpreter,
                         java.lang.Object obj)
Constructs the exception. Takes as parameters the interpreter that failed and the object that failed to be encoded.

Parameters:
interpreter - The interpreter that failed.
obj - The object that the interpreter failed to encode.
Method Detail

getInterpreter

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

Returns:
The interpreter that failed.

getObject

public java.lang.Object getObject()
This method returns the object that failed to be encoded.

Returns:
The object that failed to be encoded.