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 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
ConstructorsConstructorDescriptionOauthErrorResponseException(ErrorCode errorCode) OauthErrorResponseException(ErrorCode errorCode, String errorDescription, String errorUri)  - 
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString 
- 
Constructor Details
- 
OauthErrorResponseException
- Parameters:
 errorCode- the error code
 - 
OauthErrorResponseException
public OauthErrorResponseException(@NonNull ErrorCode errorCode, String errorDescription, 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 Details
- 
getError
- Specified by:
 getErrorin interfaceErrorResponse- Returns:
 - The error code
 
 - 
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
- Specified by:
 getErrorUriin interfaceErrorResponse- Returns:
 - URI identifying a human-readable web page with information about the errorCode
 
 
 -