Package org.hibernate.query
Class NamedQueryValidationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- jakarta.persistence.PersistenceException
-
- org.hibernate.HibernateException
-
- org.hibernate.QueryException
-
- org.hibernate.query.NamedQueryValidationException
-
- All Implemented Interfaces:
Serializable
public class NamedQueryValidationException extends QueryException
Indicates that validation and translation of one or more named queries failed at initialization time. This exception packages everyQueryException
that occurred for an invalid HQL/JPQL query, together with any exceptions that indicate problems with named native SQL queries.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NamedQueryValidationException(String message, Map<String,HibernateException> errors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,HibernateException>
getErrors()
A map from query name to the error that occurred while interpreting or translating the named query.-
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
-
NamedQueryValidationException
public NamedQueryValidationException(String message, Map<String,HibernateException> errors)
-
-
Method Detail
-
getErrors
public Map<String,HibernateException> getErrors()
A map from query name to the error that occurred while interpreting or translating the named query.
-
-