Package org.hibernate.query.sqm
Class InterpretationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- jakarta.persistence.PersistenceException
-
- org.hibernate.HibernateException
-
- org.hibernate.QueryException
-
- org.hibernate.query.sqm.InterpretationException
-
- All Implemented Interfaces:
Serializable
public class InterpretationException extends QueryException
Represents a generic unhandled problem which occurred while translating HQL/JPQL. This exception represents some sort of bug in the query translator, whereasSemanticException
orSyntaxException
indicate problems with the query itself.- See Also:
ParsingException
, 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 translator
should have detected and reported that error earlier, in a more
meaningful way, via a
SemanticException
.
-
-
Constructor Summary
Constructors Constructor Description InterpretationException(String message)
Deprecated, for removal: This API element is subject to removal in a future version.this constructor does not carry information about the query which caused the failureInterpretationException(String query, Exception cause)
InterpretationException(String query, 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
-
InterpretationException
@Deprecated(since="6.3", forRemoval=true) public InterpretationException(String message)
Deprecated, for removal: This API element is subject to removal in a future version.this constructor does not carry information about the query which caused the failure
-
-