Top Description Fields Constructors Methods
org.hibernate

public Class QueryException

extends HibernateException
Class Inheritance
Known Direct Subclasses
org.hibernate.QueryParameterException, org.hibernate.hql.QueryExecutionRequestException, org.hibernate.hql.ast.QuerySyntaxException

A problem occurred translating a Hibernate query to SQL due to invalid query syntax, etc.

Field Summary

Modifier and TypeField and Description
private String

Constructor Summary

AccessConstructor and Description
public
public
public
QueryException(String message, String queryString)

public

Method Summary

Modifier and TypeMethod and Description
public String
getMessage()

Overrides java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.
public String
public void
setQueryString(String queryString)

Field Detail

queryStringback to summary
private String queryString

Constructor Detail

QueryExceptionback to summary
public QueryException(String message)
QueryExceptionback to summary
public QueryException(String message, Throwable e)
QueryExceptionback to summary
public QueryException(String message, String queryString)
QueryExceptionback to summary
public QueryException(Exception e)

Method Detail

getMessageback to summary
public String getMessage()

Overrides java.lang.Throwable.getMessage.

Doc from java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

Returns:String

the detail message string of this Throwable instance (which may be null).

getQueryStringback to summary
public String getQueryString()
setQueryStringback to summary
public void setQueryString(String queryString)