Class CompileException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ch.tocco.nice2.model.entity.api.BaseRuntimeException
ch.tocco.nice2.persist.core.api.PersistException
ch.tocco.nice2.persist.core.api.PermanentPersistException
ch.tocco.nice2.persist.core.api.query.CompileException
- All Implemented Interfaces:
Serializable
Thrown when a query written in the nice QL fails to compile.
What the real cause of the error is can't be found out at this point. It could be for example
- a model error (field name that does not exist)
- data type error (searching for a string in a number field)
The exception is permanent because running the same query again will cause the same exception. And it's likely that - even if the query was generated from code - the same query or a very similar one will be generated again. So there is a logic problem that needs fixing.
- See Also:
-
Constructor Summary
ConstructorDescriptionCompileException
(String message) CompileException
(String message, Throwable cause) CompileException
(Throwable cause) -
Method Summary
Methods inherited from class ch.tocco.nice2.persist.core.api.PersistException
getErrorKey, isErrorKeyPresent, removeErrorKey, setErrorKey
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CompileException
public CompileException() -
CompileException
-
CompileException
-
CompileException
-