Package io.jmix.core.security
Class AccessDeniedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.jmix.core.security.AccessDeniedException
- All Implemented Interfaces:
Serializable
Exception that is raised on attempt to violate a security constraint.
You can throw this exception in application code if you want a standard notification about "access denied" to be shown to the user and the event to be logged.
- See Also:
-
Constructor Summary
ConstructorDescriptionAccessDeniedException
(String type, String resource) Constructor.AccessDeniedException
(String type, String resource, String action) Constructor. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AccessDeniedException
Constructor.- Parameters:
resource
- permission target object, e.g. a screen id or entity operation name. When throwing the exception in application code, can be any string suitable to describe the situation in the log.type
- permission type
-
AccessDeniedException
Constructor.- Parameters:
resource
- permission target object, e.g. a screen id or entity operation name. When throwing the exception in application code, can be any string suitable to describe the situation in the log.type
- permission typeaction
- type of operation on resource
-
-
Method Details
-
getType
-
getResource
-
getAction
-