Package org.hibernate
Class QueryParameterException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.persistence.PersistenceException
-
- org.hibernate.HibernateException
-
- org.hibernate.QueryException
-
- org.hibernate.QueryParameterException
-
- All Implemented Interfaces:
java.io.Serializable
public class QueryParameterException extends QueryException
Parameter invalid or not found in the query.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description QueryParameterException(java.lang.String message)
Constructs a QueryParameterException using the supplied exception message.QueryParameterException(java.lang.String message, java.lang.String queryString, java.lang.Exception cause)
Constructs a QueryParameterException
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected QueryException
generateQueryException(java.lang.String queryString)
Called fromQueryException.wrapWithQueryString(String)
when we really need to generate a new QueryException (or subclass).-
Methods inherited from class org.hibernate.QueryException
getMessage, getOriginalMessage, getQueryString, wrapWithQueryString
-
-
-
-
Constructor Detail
-
QueryParameterException
public QueryParameterException(java.lang.String message)
Constructs a QueryParameterException using the supplied exception message.- Parameters:
message
- The message explaining the exception condition
-
QueryParameterException
public QueryParameterException(java.lang.String message, java.lang.String queryString, java.lang.Exception cause)
Constructs a QueryParameterException- Parameters:
message
- The message explaining the exception conditionqueryString
- The query that led to the exceptioncause
- The underlying cause
-
-
Method Detail
-
generateQueryException
protected QueryException generateQueryException(java.lang.String queryString)
Description copied from class:QueryException
Called fromQueryException.wrapWithQueryString(String)
when we really need to generate a new QueryException (or subclass). NOTE : implementors should take care to useQueryException.getOriginalMessage()
for the message, notQueryException.getMessage()
- Overrides:
generateQueryException
in classQueryException
- Parameters:
queryString
- The query string- Returns:
- The generated QueryException (or subclass)
- See Also:
QueryException.getOriginalMessage()
-
-