Class AuthorizationException

All Implemented Interfaces:
Serializable

public class AuthorizationException extends SecurityException
Exception thrown when authorization to some resource fails.
Since:
1.60
Version:
1.0
Author:
matt
See Also:
  • Constructor Details

    • AuthorizationException

      public AuthorizationException(String username, AuthorizationException.Reason reason)
      Construct authorization exception.
      Parameters:
      username - the attempted login
      reason - the reason for the exception
    • AuthorizationException

      public AuthorizationException(AuthorizationException.Reason reason, Object id)
      Construct authorization exception related to some primary key
      Parameters:
      reason - the reason for the exception
      id - the object ID
  • Method Details

    • getEmail

      public String getEmail()
      Get the attempted login.
      Returns:
      login value (or null if not available)
    • getId

      public Object getId()
      Get the primary key.
      Returns:
      the primary key (or null if not available)
    • getReason

      public AuthorizationException.Reason getReason()
      Get the authorization exception reason.
      Returns:
      reason
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable