public class AccessDeniedException
extends java.lang.Exception
Thrown by the security authority implementations if the credentials supplied are not correct or another error occurs as a result of user parameters.
| Modifier and Type | Field and Description |
|---|---|
private SecurityAuthority |
auth
The security authority raising the exception.
|
private java.lang.String |
reason
The reason the exception was raised.
|
| Constructor and Description |
|---|
AccessDeniedException(SecurityAuthority auth,
java.lang.String reason)
Creates a new exeception.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString()
Returns a printable string describing the exception.
|
private final java.lang.String reason
private final SecurityAuthority auth
public AccessDeniedException(SecurityAuthority auth, java.lang.String reason)
auth - the authority raising the exception.reason - the reason the exception was raised.