FileDocCategorySizeDatePackage
QuerySyntaxException.javaAPI DocHibernate 3.2.5906Thu Feb 09 05:37:36 GMT 2006org.hibernate.hql.ast

QuerySyntaxException

public class QuerySyntaxException extends org.hibernate.QueryException
Exception thrown when there is a syntax error in the HQL.
author
josh

Fields Summary
Constructors Summary
public QuerySyntaxException(String message)

		super( message );
	
public QuerySyntaxException(String message, String hql)

		this( message );
		setQueryString( hql );
	
Methods Summary
public static org.hibernate.hql.ast.QuerySyntaxExceptionconvert(antlr.RecognitionException e)

		return convert( e, null );
	
public static org.hibernate.hql.ast.QuerySyntaxExceptionconvert(antlr.RecognitionException e, java.lang.String hql)

		String positionInfo = e.getLine() > 0 && e.getColumn() > 0
				? " near line " + e.getLine() + ", column " + e.getColumn()
				: "";
		return new QuerySyntaxException( e.getMessage() + positionInfo, hql );