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.

See Also:
  • Field Details

    • reason

      private final String reason
      The reason the exception was raised.
    • auth

      private final SecurityAuthority auth
      The security authority raising the exception.
  • Constructor Details

    • 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.
  • Method Details

    • toString

      public String toString()
      Returns a printable string describing the exception.
      Overrides:
      toString in class Throwable