Class JpqlAccessConstraintException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.jmix.aitools.dataload.execution.JpqlAccessConstraintException
- All Implemented Interfaces:
Serializable
Signals that the current user's access constraints cannot be applied to a query, so the query is refused rather
than executed unfiltered. This happens when the query selects an entity whole, passes a parameter the application
supplies itself, or reads an entity whose row-level conditions cannot be applied where it is used. Unlike
AccessDeniedException, the user may read the data, but the query has to be written differently. The
message says how.- See Also:
-
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
-
Constructor Details
-
JpqlAccessConstraintException
Creates the exception.- Parameters:
message- what cannot be narrowed and how to rewrite the query; it is shown to the model
-