Class BeanQueryExecutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.juneau.commons.BasicRuntimeException
org.apache.juneau.commons.beanquery.BeanQueryExecutionException
- All Implemented Interfaces:
Serializable
A server-side failure while running a valid
BeanQuery: a SQLException, a connection failure, or a
column accessor that throws.
Contrast with BeanQuerySyntaxException, which reports bad caller input (HTTP 400). This exception maps to
HTTP 500. Its message is deliberately generic (for example "Query execution failed for table 'person'.");
the underlying cause is attached, and engines log any SQL text instead of putting it in the message.
Example:
- Since:
- 10.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBeanQueryExecutionException(Throwable cause, String message, Object... args) Constructor. -
Method Summary
Methods inherited from class org.apache.juneau.commons.BasicRuntimeException
getMessage, setMessageMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BeanQueryExecutionException
Constructor.- Parameters:
cause- The underlying failure. Can benull .message- The printf-style message.args- The message arguments.
-