Class AccessDeniedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.jcsp.net.security.AccessDeniedException
- All Implemented Interfaces:
Serializable
Thrown by the security authority implementations if the credentials supplied are not correct or another error occurs as a result of user parameters.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SecurityAuthorityThe security authority raising the exception.private final StringThe reason the exception was raised. -
Constructor Summary
ConstructorsConstructorDescriptionAccessDeniedException(SecurityAuthority auth, String reason) Creates a new exeception. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
reason
The reason the exception was raised. -
auth
The security authority raising the exception.
-
-
Constructor Details
-
AccessDeniedException
Creates a new exeception.- Parameters:
auth- the authority raising the exception.reason- the reason the exception was raised.
-
-
Method Details
-
toString
-