org.hibernate.hql.ast

Class QuerySyntaxException

Implemented Interfaces:
Nestable
Known Direct Subclasses:
InvalidWithClauseException

public class QuerySyntaxException
extends QueryException

Exception thrown when there is a syntax error in the HQL.
Author:
josh

Field Summary

Fields inherited from class org.hibernate.exception.NestableRuntimeException

delegate

Constructor Summary

QuerySyntaxException(String message)
Constructs a new NestableRuntimeException with specified detail message.
QuerySyntaxException(String message, String hql)

Method Summary

static QuerySyntaxException
convert(RecognitionException e)
static QuerySyntaxException
convert(RecognitionException e, String hql)

Methods inherited from class org.hibernate.QueryException

getMessage, getQueryString, setQueryString

Methods inherited from class org.hibernate.exception.NestableRuntimeException

getCause, getMessage, getMessage, getMessages, getThrowable, getThrowableCount, getThrowables, indexOfThrowable, indexOfThrowable, printPartialStackTrace, printStackTrace, printStackTrace, printStackTrace

Constructor Details

QuerySyntaxException

public QuerySyntaxException(String message)
Constructs a new NestableRuntimeException with specified detail message.
Parameters:

QuerySyntaxException

public QuerySyntaxException(String message,
                            String hql)

Method Details

convert

public static QuerySyntaxException convert(RecognitionException e)

convert

public static QuerySyntaxException convert(RecognitionException e,
                                           String hql)