Package org.nuiton.topia.persistence
Class TopiaQueryException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.nuiton.topia.persistence.TopiaException
org.nuiton.topia.persistence.TopiaQueryException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
QueryMissingOrderException
,TopiaNonUniqueResultException
,TopiaNoResultException
Exception raised when an error occur in the context of a particular query. Catching this exception class allow you
to get the buggy request and its parameters.
When catching such an exception you may ease development by logging all the provided information given by
getHql()
and getHqlParameters()
but it's considered dangerous since parameters can contain sensible
data (such as passwords) that should not be printed anywhere.- Since:
- 3.0
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
hql
-
hqlParameters
-
-
Constructor Details
-
TopiaQueryException
-
TopiaQueryException
-
TopiaQueryException
-
TopiaQueryException
-
-
Method Details
-
getHql
-
getHqlParameters
-