Package com.blazebit.query
Class QueryException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.blazebit.query.QueryException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
NonUniqueResultException
,NoResultException
Thrown if an exception during query execution occurs.
- Since:
- 1.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionQueryException
(String message, String queryString) Creates a new QueryException.QueryException
(String message, Throwable cause, String queryString) Creates a new QueryException. -
Method Summary
Modifier and TypeMethodDescriptionReturns the query string associated to this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
QueryException
Creates a new QueryException.- Parameters:
message
- The exception messagequeryString
- The query string
-
QueryException
Creates a new QueryException.- Parameters:
message
- The exception messagecause
- The underlying exception causequeryString
- The query string
-
-
Method Details
-
getQueryString
Returns the query string associated to this exception.- Returns:
- the query string associated to this exception
-