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,- Serializable
An Runtime exception which implements 
ErrorResponse.- Since:
- 2.0.0
- Author:
- Sergio del Amo
- See Also:
- 
Field SummaryFields inherited from interface io.micronaut.security.errors.ErrorResponseJSON_KEY_ERROR, JSON_KEY_ERROR_DESCRIPTION, JSON_KEY_ERROR_URI, JSON_KEY_STATE
- 
Constructor SummaryConstructorsConstructorDescriptionOauthErrorResponseException(@NonNull ErrorCode errorCode) OauthErrorResponseException(@NonNull ErrorCode errorCode, String errorDescription, String errorUri) 
- 
Method SummaryMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
OauthErrorResponseException- Parameters:
- errorCode- the error code
 
- 
OauthErrorResponseExceptionpublic 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- Specified by:
- getErrorin interface- ErrorResponse
- Returns:
- The error code
 
- 
getErrorDescription- Specified by:
- getErrorDescriptionin interface- ErrorResponse
- Returns:
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the errorCode that occurred.
 
- 
getErrorUri- Specified by:
- getErrorUriin interface- ErrorResponse
- Returns:
- URI identifying a human-readable web page with information about the errorCode
 
 
-