org.bioquery.query
Class QueryException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--org.bioquery.query.QueryException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- InvalidQueryException, InvalidQueryLineException
- public abstract class QueryException
- extends java.lang.Exception
Exception class thrown when data or methods within Query objects do
not work as intended. Can also contain other embedded exceptions
(such as those indicating the problem is with network connections, etc.).
- Author:
- James Brundege
- See Also:
- Serialized Form
|
Constructor Summary |
QueryException()
|
QueryException(java.lang.String message)
Constructor accepts a text message. |
QueryException(java.lang.String message,
java.lang.Throwable cause)
Constructor accepts a text message and an embedded exception. |
QueryException(java.lang.Throwable cause)
Constructor accepts an embedded exception. |
|
Method Summary |
java.lang.Throwable |
getCause()
Returns an embedded exception that may yield greater insight into
why this exception was thrown. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
QueryException
public QueryException()
QueryException
public QueryException(java.lang.String message)
- Constructor accepts a text message.
- Parameters:
message - Message that the user will be able to retrieve
QueryException
public QueryException(java.lang.Throwable cause)
- Constructor accepts an embedded exception.
- Parameters:
cause - An embedded exception the user can retrieve.
QueryException
public QueryException(java.lang.String message,
java.lang.Throwable cause)
- Constructor accepts a text message and an embedded exception.
- Parameters:
message - Message that the user will be able to retrievecause - An embedded exception the user can retrieve.
getCause
public java.lang.Throwable getCause()
- Returns an embedded exception that may yield greater insight into
why this exception was thrown.