Class JpqlAccessConstraintException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.jmix.aitools.dataload.execution.JpqlAccessConstraintException
All Implemented Interfaces:
Serializable

public class JpqlAccessConstraintException extends RuntimeException
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 Details

    • JpqlAccessConstraintException

      public JpqlAccessConstraintException(String message)
      Creates the exception.
      Parameters:
      message - what cannot be narrowed and how to rewrite the query; it is shown to the model