|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.ceryle.wiki.plugin.query.QueryException
public class QueryException
A simple typed exception for use by the QueryPlugin.
Permitted types include QUERY_ERROR,
SYNTAX_ERROR, and GRAMMAR_ERROR.
| Field Summary | |
|---|---|
static int |
GRAMMAR_ERROR
An exception type constant indicating a query exception due to an expression grammatical error. |
protected static int |
m_type
|
static int |
PARAMETER_ERROR
An exception type constant indicating an error in plugin or parameter syntax. |
static int |
QUERY_ERROR
An exception type constant indicating a general (untyped or unspecified) query exception. |
static int |
SYNTAX_ERROR
An exception type constant indicating a query exception due to an expression syntax error. |
static int |
UNKNOWN_ERROR
An exception type constant indicating an unknown error condition. |
| Constructor Summary | |
|---|---|
QueryException()
Default constructor. |
|
QueryException(int type)
Constructor for a QueryException with a type and no message. |
|
QueryException(int type,
String message)
Constructor for typed query exception, provided the type and message. |
|
QueryException(int type,
String message,
Throwable original)
Tunnel an existing Throwable original with the provided type and message. |
|
QueryException(String message)
Constructor for a general (untyped or unspecified) query exception with the provided message. |
|
QueryException(String message,
Throwable original)
Tunnel an existing Throwable original with the provided message. |
|
| Method Summary | |
|---|---|
int |
getType()
Returns the type of this QueryException. |
String |
getTypeDescription()
Return a textual description of the exception type, suitable as an exception "title". |
static String |
getTypeDescription(int type,
Throwable throwable)
Return a textual description of the exception type, suitable as an exception "title". |
protected void |
setType(int type)
Sets the type of this QueryException. |
| 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 |
|---|
public static final int UNKNOWN_ERROR
public static final int PARAMETER_ERROR
public static final int QUERY_ERROR
public static final int SYNTAX_ERROR
public static final int GRAMMAR_ERROR
protected static int m_type
| Constructor Detail |
|---|
public QueryException()
public QueryException(int type)
getTypeDescription().
public QueryException(String message)
public QueryException(int type,
String message)
public QueryException(String message,
Throwable original)
public QueryException(int type,
String message,
Throwable original)
| Method Detail |
|---|
protected void setType(int type)
public int getType()
PARAMETER_ERROR,
QUERY_ERROR,
SYNTAX_ERROR,
GRAMMAR_ERRORpublic String getTypeDescription()
getTypeDescription(int,Throwable)
public static String getTypeDescription(int type,
Throwable throwable)
type - the type of the descriptionthrowable - an optional Throwable (e.g., Exception)PARAMETER_ERROR,
QUERY_ERROR,
SYNTAX_ERROR,
GRAMMAR_ERROR
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||