public class PermissionDeniedException extends BaseException
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
Constructor and Description |
---|
PermissionDeniedException(Permission permission)
Creates a new
PermissionDeniedException . |
PermissionDeniedException(Permission permission,
java.lang.String what)
Creates a new
PermissionDeniedException . |
PermissionDeniedException(java.lang.String message)
Creates a new
PermissionDeniedException . |
PermissionDeniedException(java.lang.String message,
java.lang.Throwable cause)
Creates a new
PermissionDeniedException . |
private static final long serialVersionUID
public PermissionDeniedException(Permission permission)
PermissionDeniedException
. The error
message produced will look like: Permission denied: Not
allowed to write
permission
- The permission requested. Should be one of the
values defined in the Permission
class}public PermissionDeniedException(Permission permission, java.lang.String what)
PermissionDeniedException
. The error
message produced will look like: Permission denied:
Not allowed to read User[ID=1]
permission
- The permission requested. Should be one of the
values defined in the Permission
class}what
- A description of what access is denied to, for
example: User[ID=1]public PermissionDeniedException(java.lang.String message)
PermissionDeniedException
. The error
message produced will look like:
Permission denied: message
message
- The message explaining why permission was deniedpublic PermissionDeniedException(java.lang.String message, java.lang.Throwable cause)
PermissionDeniedException
. The error
message produced will look like:
Permission denied: message
message
- The message explaining why permission was deniedcause
- The original cause of the exception