joperties.exceptions
Class NoApropriateInterpeterFoundException

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

public class NoApropriateInterpeterFoundException
extends JopertiesException

This exception is thrown when no registered interpreter is found.

Author:
Savvas Dalkitsis
See Also:
Serialized Form

Field Summary
private  java.lang.Class<?> classToInterpret
          This holds the class that no interpreter was found for.
private static long serialVersionUID
           
private  java.lang.String stringToInterpret
          This optionally holds the string that was not interpretet.
 
Constructor Summary
NoApropriateInterpeterFoundException(java.lang.Class<?> classToInterpret)
          This constructs the exception.
NoApropriateInterpeterFoundException(java.lang.Class<?> classToInterpret, java.lang.String stringToInterpret)
          This constructs the exception.
 
Method Summary
 java.lang.Class<?> getNotInterpretedClass()
          This method returns the class that an interpreter was not found for.
 java.lang.String getStringToInterpret()
          This method returns the string that was meant 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

classToInterpret

private java.lang.Class<?> classToInterpret
This holds the class that no interpreter was found for.


stringToInterpret

private java.lang.String stringToInterpret
This optionally holds the string that was not interpretet.

Constructor Detail

NoApropriateInterpeterFoundException

public NoApropriateInterpeterFoundException(java.lang.Class<?> classToInterpret,
                                            java.lang.String stringToInterpret)
This constructs the exception. Takes as parameters the class that was meant to be interpreted and optionally the string that was meant to be interpreted (can be null).

Parameters:
stringToInterpret - The class that was meant to be interpreted.
classToInterpret - (Optional) the string that was meant to be interpreted (can be null).

NoApropriateInterpeterFoundException

public NoApropriateInterpeterFoundException(java.lang.Class<?> classToInterpret)
This constructs the exception. Takes as parameter the class that was meant to be interpreted.

Parameters:
classToInterpret - The class that was meant to be interpreted.
Method Detail

getNotInterpretedClass

public java.lang.Class<?> getNotInterpretedClass()
This method returns the class that an interpreter was not found for.

Returns:
The class that an interpreter was not found for.

getStringToInterpret

public java.lang.String getStringToInterpret()
This method returns the string that was meant to be interpreted. If no string was specified then it returns null.

Returns:
The string that was meant to be interpreted. If no string was specified then it returns null.