Package org.jcsp.net.security
Class AccessDeniedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.jcsp.net.security.AccessDeniedException
-
- All Implemented Interfaces:
Serializable
public class AccessDeniedException extends Exception
Thrown by the security authority implementations if the credentials supplied are not correct or another error occurs as a result of user parameters.
- Author:
- Quickstone Technologies Limited
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AccessDeniedException(SecurityAuthority auth, String reason)
Creates a new exeception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
Returns a printable string describing the exception.-
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
AccessDeniedException
public AccessDeniedException(SecurityAuthority auth, String reason)
Creates a new exeception.- Parameters:
auth
- the authority raising the exception.reason
- the reason the exception was raised.
-
-