net.sf.eodsql
Class InvalidDataTypeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.sf.eodsql.InvalidQueryException
                  extended by net.sf.eodsql.InvalidDataTypeException
All Implemented Interfaces:
Serializable

public class InvalidDataTypeException
extends InvalidQueryException

This method is thrown by the QueryTool class when a data-type returned by an @Select method is found to be invalid.

Author:
jason
See Also:
Serialized Form

Constructor Summary
InvalidDataTypeException(Class type)
          Creates a new instance of InvalidDataTypeException without detail message.
InvalidDataTypeException(String msg, Class type)
          Constructs an instance of InvalidDataTypeException with the specified detail message.
InvalidDataTypeException(String msg, Class type, Method problem)
          Constructs an instance of InvalidDataTypeException with the specified detail message, and a specific method that caused the problem.
 
Method Summary
 Class getDataType()
          Returns the Class of the data-type that caused this method to be thrown.
 
Methods inherited from class net.sf.eodsql.InvalidQueryException
getInvalidMethod
 
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
 

Constructor Detail

InvalidDataTypeException

public InvalidDataTypeException(Class type)
Creates a new instance of InvalidDataTypeException without detail message.

Parameters:
type - the offending data-type

InvalidDataTypeException

public InvalidDataTypeException(String msg,
                                Class type)
Constructs an instance of InvalidDataTypeException with the specified detail message.

Parameters:
type - the offending data-type
msg - the detail message.

InvalidDataTypeException

public InvalidDataTypeException(String msg,
                                Class type,
                                Method problem)
Constructs an instance of InvalidDataTypeException with the specified detail message, and a specific method that caused the problem.

Parameters:
type - the offending data-type
problem - the method that caused the exception to be thrown
msg - the detail message.
Method Detail

getDataType

public Class getDataType()
Returns the Class of the data-type that caused this method to be thrown.

Returns:
the offending data-type