Class OauthErrorResponseException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.micronaut.security.errors.OauthErrorResponseException
All Implemented Interfaces:
ErrorResponse, Serializable

public class OauthErrorResponseException extends RuntimeException implements ErrorResponse
An Runtime exception which implements ErrorResponse.
Since:
2.0.0
Author:
Sergio del Amo
See Also:
  • Constructor Details

    • OauthErrorResponseException

      public OauthErrorResponseException(@NonNull @NonNull ErrorCode errorCode)
      Parameters:
      errorCode - the error code
    • OauthErrorResponseException

      public OauthErrorResponseException(@NonNull @NonNull ErrorCode errorCode, String errorDescription, String errorUri)
      Parameters:
      errorCode - The error code
      errorDescription - Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the errorCode that occurred.
      errorUri - URI identifying a human-readable web page with information about the errorCode
  • Method Details

    • getError

      @NonNull public @NonNull ErrorCode getError()
      Specified by:
      getError in interface ErrorResponse
      Returns:
      The error code
    • getErrorDescription

      @Nullable public @Nullable String getErrorDescription()
      Specified by:
      getErrorDescription in interface ErrorResponse
      Returns:
      Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the errorCode that occurred.
    • getErrorUri

      @Nullable public @Nullable String getErrorUri()
      Specified by:
      getErrorUri in interface ErrorResponse
      Returns:
      URI identifying a human-readable web page with information about the errorCode