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(PermissionType type,
EntityOp entityOp,
java.lang.String target)
Constructor.
|
AccessDeniedException(PermissionType type,
java.lang.String target)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
EntityOp |
getEntityOp() |
java.lang.String |
getTarget() |
PermissionType |
getType() |
public AccessDeniedException(PermissionType type, java.lang.String target)
type
- permission typetarget
- 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.public AccessDeniedException(PermissionType type, EntityOp entityOp, java.lang.String target)
type
- permission typeentityOp
- type of operation on entitytarget
- 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.public PermissionType getType()
public java.lang.String getTarget()
public EntityOp getEntityOp()