net.sf.eodsql
Class InvalidQueryException

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

public class InvalidQueryException
extends RuntimeException

This exception is only ever thrown by methods in the QueryTool class when an implementation of BaseQuery is requested which violates any of the rules for a query class.

Author:
jason
See Also:
Serialized Form

Constructor Summary
InvalidQueryException()
          Creates a new instance of InvalidQueryException without detail message.
InvalidQueryException(String msg)
          Constructs an instance of InvalidQueryException with the specified detail message.
InvalidQueryException(String msg, Method problem)
          Constructs an instance of InvalidQueryException with the specified detail message, and a specific method that caused the problem.
 
Method Summary
 Method getInvalidMethod()
          Generally the reason a query interface is found to be invalid is that one of it's methods have been badly annotated.
 
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

InvalidQueryException

public InvalidQueryException()
Creates a new instance of InvalidQueryException without detail message.


InvalidQueryException

public InvalidQueryException(String msg)
Constructs an instance of InvalidQueryException with the specified detail message.

Parameters:
msg - the detail message.

InvalidQueryException

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

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

getInvalidMethod

public Method getInvalidMethod()
Generally the reason a query interface is found to be invalid is that one of it's methods have been badly annotated. If this is the case, a call to getInvalidMethod will return the offending method, otherwise it will return null

Returns:
the method that caused this exception to be thrown