Package io.micronaut.security.errors
Class OauthErrorResponseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.micronaut.security.errors.OauthErrorResponseException
-
- All Implemented Interfaces:
ErrorResponse,java.io.Serializable
public class OauthErrorResponseException extends java.lang.RuntimeException implements ErrorResponse
An Runtime exception which implementsErrorResponse.- Since:
- 2.0.0
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface io.micronaut.security.errors.ErrorResponse
JSON_KEY_ERROR, JSON_KEY_ERROR_DESCRIPTION, JSON_KEY_ERROR_URI, JSON_KEY_STATE
-
-
Constructor Summary
Constructors Constructor Description OauthErrorResponseException(ErrorCode errorCode)OauthErrorResponseException(ErrorCode errorCode, java.lang.String errorDescription, java.lang.String errorUri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorCodegetError()java.lang.StringgetErrorDescription()java.lang.StringgetErrorUri()
-
-
-
Constructor Detail
-
OauthErrorResponseException
public OauthErrorResponseException(@NonNull ErrorCode errorCode)- Parameters:
errorCode- the error code
-
OauthErrorResponseException
public OauthErrorResponseException(@NonNull ErrorCode errorCode, java.lang.String errorDescription, java.lang.String errorUri)- Parameters:
errorCode- The error codeerrorDescription- 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 Detail
-
getError
@NonNull public ErrorCode getError()
- Specified by:
getErrorin interfaceErrorResponse- Returns:
- The error code
-
getErrorDescription
@Nullable public java.lang.String getErrorDescription()
- Specified by:
getErrorDescriptionin interfaceErrorResponse- Returns:
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the errorCode that occurred.
-
getErrorUri
@Nullable public java.lang.String getErrorUri()
- Specified by:
getErrorUriin interfaceErrorResponse- Returns:
- URI identifying a human-readable web page with information about the errorCode
-
-