com.holonplatform.auth.exceptions

## Class AuthorizationException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - com.holonplatform.http.ErrorResponse.ErrorResponseException
        - - com.holonplatform.auth.exceptions.AuthorizationException

- All Implemented Interfaces:
    ErrorResponse, Serializable
  Direct Known Subclasses:
    UnsupportedPermissionException

      public class AuthorizationException
      extends ErrorResponse.ErrorResponseException

  Exception which may be thrown during authorization
  Since:
    5.0.0
  See Also:
    `Authorizer`, Serialized Form

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface com.holonplatform.http.ErrorResponse

      `ErrorResponse.ErrorResponseException`

  - ### Field Summary

    - ### Fields inherited from interface com.holonplatform.http.ErrorResponse

      `ERROR_CODE_SERIALIZATION_NAME, ERROR_DESCRIPTION_SERIALIZATION_NAME, ERROR_URI_SERIALIZATION_NAME, INVALID_CLIENT, INVALID_REQUEST, INVALID_TOKEN, SERVER_ERROR, TEMPORARY_UNAVAILABLE`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `AuthorizationException(String errorCode, String errorDescription)` Constructor
    `AuthorizationException(String errorCode, String errorDescription, int httpStatus)` Constructor
    `AuthorizationException(String errorCode, String errorDescription, String errorURI, int httpStatus)` Constructor

  - ### Method Summary

    - ### Methods inherited from class com.holonplatform.http.ErrorResponse.ErrorResponseException

      `getErrorCode, getErrorDescription, getErrorURI, getHttpStatus`

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### AuthorizationException

          public AuthorizationException(String errorCode,
                                        String errorDescription)

      Constructor
      Parameters:
        `errorCode` - Error code
        `errorDescription` - Error description, i.e. a human-readable explanation of this error

    - #### AuthorizationException

          public AuthorizationException(String errorCode,
                                        String errorDescription,
                                        int httpStatus)

      Constructor
      Parameters:
        `errorCode` - Error code
        `errorDescription` - Error description, i.e. a human-readable explanation of this error
        `httpStatus` - HTTP status code to represent error as a HTTP response

    - #### AuthorizationException

          public AuthorizationException(String errorCode,
                                        String errorDescription,
                                        String errorURI,
                                        int httpStatus)

      Constructor
      Parameters:
        `errorCode` - Error code
        `errorDescription` - Error description, i.e. a human-readable explanation of this error
        `errorURI` - Error URI that leads to further details about this error
        `httpStatus` - HTTP status code to represent error as a HTTP response

Copyright © 2019 The Holon Platform. All rights reserved.