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
ConstructorsConstructorDescriptionQueryParameterException(String message) Constructs aQueryParameterExceptionusing the supplied exception message.QueryParameterException(String message, String queryString) Constructs aQueryParameterExceptionQueryParameterException(String message, String queryString, Exception cause) Constructs aQueryParameterException -
Method Summary
Modifier and TypeMethodDescriptionprotected QueryExceptiongenerateQueryException(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, wrapWithQueryStringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
QueryParameterException
Constructs aQueryParameterExceptionusing 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:QueryExceptionCalled fromQueryException.wrapWithQueryString(String)when we really need to generate a newQueryException(or subclass).- Overrides:
generateQueryExceptionin classQueryException- Parameters:
queryString- The query string- Returns:
- The generated
QueryException(or subclass) - See Also:
-