public class AccessDeniedException
extends java.lang.RuntimeException
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.
Constructor and Description |
---|
AccessDeniedException(java.lang.String type,
java.lang.String resource)
Constructor.
|
AccessDeniedException(java.lang.String type,
java.lang.String resource,
java.lang.String action)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAction() |
java.lang.String |
getResource() |
java.lang.String |
getType() |
public AccessDeniedException(java.lang.String type, java.lang.String resource)
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 typepublic AccessDeniedException(java.lang.String type, java.lang.String resource, @Nullable java.lang.String action)
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