Package org.hibernate
Class QueryParameterException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.persistence.PersistenceException
org.hibernate.HibernateException
org.hibernate.QueryException
org.hibernate.QueryParameterException
- All Implemented Interfaces:
Serializable
Indicates a problem with the runtime arguments bound to query parameters.
- See Also:
-
Constructor Summary
ConstructorDescriptionQueryParameterException
(String message) Constructs aQueryParameterException
using the supplied exception message.QueryParameterException
(String message, String queryString) Constructs aQueryParameterException
QueryParameterException
(String message, String queryString, Exception cause) Constructs aQueryParameterException
-
Method Summary
Modifier and TypeMethodDescriptionprotected QueryException
generateQueryException
(String queryString) Called fromQueryException.wrapWithQueryString(String)
when we really need to generate a newQueryException
(or subclass).Methods inherited from class org.hibernate.QueryException
getMessage, getOriginalMessage, getQueryString, wrapWithQueryString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
QueryParameterException
Constructs aQueryParameterException
using the supplied exception message.- Parameters:
message
- The message explaining the exception condition
-
QueryParameterException
Constructs aQueryParameterException
- Parameters:
message
- The message explaining the exception conditionqueryString
- The query that led to the exceptioncause
- The underlying cause
-
QueryParameterException
Constructs aQueryParameterException
- Parameters:
message
- The message explaining the exception conditionqueryString
- The query that led to the exception
-
-
Method Details
-
generateQueryException
Description copied from class:QueryException
Called fromQueryException.wrapWithQueryString(String)
when we really need to generate a newQueryException
(or subclass).- Overrides:
generateQueryException
in classQueryException
- Parameters:
queryString
- The query string- Returns:
- The generated
QueryException
(or subclass) - See Also:
-