ca.sqlpower.wabit
Class QueryException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by ca.sqlpower.wabit.QueryException
All Implemented Interfaces:
java.io.Serializable

public class QueryException
extends java.lang.Exception

An exception that is caused by any failure of data gathering by any means implemented by the Query interface.

See Also:
Serialized Form

Constructor Summary
QueryException(java.lang.String query, java.lang.Throwable cause)
          Creates a new query exception.
 
Method Summary
 java.lang.String getQuery()
          Returns the text of the query that failed.
 
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

QueryException

public QueryException(java.lang.String query,
                      java.lang.Throwable cause)
Creates a new query exception.

Parameters:
query - Some text describing the query that failed. For an SQL query exception, this should be the SQL query that did not execute.
cause - The underlying cause of the query failure. For an SQL query exception, this should be the SQLException from the database.
Method Detail

getQuery

public java.lang.String getQuery()
Returns the text of the query that failed.



Copyright © 2009. All Rights Reserved.