Top Description Constructors Methods
org.hibernate

public Class QueryParameterException

extends QueryException
Class Inheritance

Parameter invalid or not found in the query.
Author
Emmanuel Bernard

Constructor Summary

AccessConstructor and Description
public
QueryParameterException(String
The message explaining the exception condition
message
)

Constructs a QueryParameterException using the supplied exception message.

public
QueryParameterException(String
The message explaining the exception condition
message
,
String
The query that led to the exception
queryString
,
Exception
The underlying cause
cause
)

Constructs a QueryParameterException

Method Summary

Modifier and TypeMethod and Description
protected QueryException
generateQueryException(String
The query string
queryString
)

Overrides org.hibernate.QueryException.generateQueryException.

Called from wrapWithQueryString(String) when we really need to generate a new QueryException (or subclass).
Inherited from org.hibernate.QueryException:
getMessagegetOriginalMessagegetQueryStringwrapWithQueryString

Constructor Detail

QueryParameterExceptionback to summary
public QueryParameterException(String message)

Constructs a QueryParameterException using the supplied exception message.

Parameters
message:String

The message explaining the exception condition

QueryParameterExceptionback to summary
public QueryParameterException(String message, String queryString, Exception cause)

Constructs a QueryParameterException

Parameters
message:String

The message explaining the exception condition

queryString:String

The query that led to the exception

cause:Exception

The underlying cause

Method Detail

generateQueryExceptionback to summary
protected QueryException generateQueryException(String queryString)

Overrides org.hibernate.QueryException.generateQueryException.

Doc from org.hibernate.QueryException.generateQueryException.

Called from wrapWithQueryString(String) when we really need to generate a new QueryException (or subclass).

NOTE : implementors should take care to use getOriginalMessage() for the message, not getMessage()

Parameters
queryString:String

The query string

Returns:QueryException

The generated QueryException (or subclass)

Annotations
@Override