Package org.hibernate.query.sqm
Class ParsingException
- All Implemented Interfaces:
Serializable
public classParsingExceptionextendsQueryException
Occurs when an unexpected condition is encountered while interpreting the output of the HQL parser. This exception represents some sort of bug in the parser, whereasSyntaxExceptionindicates a problem with the query itself.- See Also:
InterpretationException,Serialized Form- API Note:
- This exception type should not be used to report any expected kind of failure which could occur due to user error. It should only be used to assert that a condition should never occur. Of course, this exception usually occurs when a query has some sort of error. But its occurrence indicates that the query parser should have detected and reported that error earlier, in a more meaningful way, via a
SyntaxException.
Constructor Summary
Constructors Constructor Description ParsingException(String message)
Method Summary
Methods inherited from class org.hibernate.QueryException
generateQueryException,getMessage,getOriginalMessage,getQueryString,wrapWithQueryString
Methods inherited from class java.lang.Throwable
addSuppressed,fillInStackTrace,getCause,getLocalizedMessage,getStackTrace,getSuppressed,initCause,printStackTrace,printStackTrace,printStackTrace,setStackTrace,toString
Constructor Detail
ParsingException
public ParsingException(String message)