Top Description Constructors Methods
org.hibernate

public Class QueryParameterException

extends QueryException
Class Inheritance

Indicates a problem with the runtime arguments bound to query parameters.
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

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

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

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

Constructs a QueryParameterException

Parameters
message:String

The message explaining the exception condition

queryString:String

The query that led to the exception

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).

Parameters
queryString:String

The query string

Returns:QueryException

The generated QueryException (or subclass)

Annotations
@Override