Package org.hibernate.query
Class IllegalQueryOperationException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- jakarta.persistence.PersistenceException
- org.hibernate.HibernateException
- org.hibernate.QueryException
- org.hibernate.query.IllegalQueryOperationException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
IllegalMutationQueryException,IllegalSelectQueryException
public classIllegalQueryOperationExceptionextendsQueryException
Thrown when an operation of theQueryinterface is called which is unsupported due to the nature of the query itself. For example, this exception is throw ifexecuteUpdate()is invoked on an instance ofQueryrepresenting a JPQL or SQLSELECTquery.- See Also:
- Serialized Form
Constructor Summary
Constructors Constructor Description IllegalQueryOperationException(String message)IllegalQueryOperationException(String message,String queryString,Exception cause)
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