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
public class QueryParameterException extends QueryException
Indicates a problem with the runtime arguments bound to query parameters.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description QueryParameterException(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 Detail
-
QueryParameterException
public QueryParameterException(String message)
Constructs aQueryParameterException
using the supplied exception message.- Parameters:
message
- The message explaining the exception condition
-
QueryParameterException
public QueryParameterException(String message, String queryString, Exception cause)
Constructs aQueryParameterException
- Parameters:
message
- The message explaining the exception conditionqueryString
- The query that led to the exceptioncause
- The underlying cause
-
-
Method Detail
-
generateQueryException
protected QueryException generateQueryException(String queryString)
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:
QueryException.getOriginalMessage()
-
-