Interface ExternalOAuthFailedError
- All Superinterfaces:
ErrorObject
Returned when an external OAuth Introspection endpoint does not return a response within the time limit, or the response isn't compliant with RFC 7662 (for example, an HTTP status code like 500
).
Example to create an instance using the builder pattern
ExternalOAuthFailedError externalOAuthFailedError = ExternalOAuthFailedError.builder()
.message("{message}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ExternalOAuthFailedError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ExternalOAuthFailedErrorbuilder
(ExternalOAuthFailedError template) create builder for ExternalOAuthFailedError instancestatic ExternalOAuthFailedError
deepCopy
(ExternalOAuthFailedError template) factory method to create a deep copy of ExternalOAuthFailedError@NotNull String
getCode()
Error identifier.@NotNull String
Plain text description detailing the external OAuth error.static ExternalOAuthFailedError
of()
factory methodstatic ExternalOAuthFailedError
of
(ExternalOAuthFailedError template) factory method to create a shallow copy ExternalOAuthFailedErrorvoid
setMessage
(String message) Plain text description detailing the external OAuth error.static com.fasterxml.jackson.core.type.TypeReference<ExternalOAuthFailedError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.error.ErrorObject
setValue, values, withErrorObject
-
Field Details
-
EXTERNAL_O_AUTH_FAILED
discriminator value for ExternalOAuthFailedError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
getMessage
Plain text description detailing the external OAuth error. For example,
"External OAuth did not respond in time."
.- Specified by:
getMessage
in interfaceErrorObject
- Returns:
- message
-
setMessage
Plain text description detailing the external OAuth error. For example,
"External OAuth did not respond in time."
.- Specified by:
setMessage
in interfaceErrorObject
- Parameters:
message
- value to be set
-
of
factory method- Returns:
- instance of ExternalOAuthFailedError
-
of
factory method to create a shallow copy ExternalOAuthFailedError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ExternalOAuthFailedError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ExternalOAuthFailedError- Returns:
- builder
-
builder
create builder for ExternalOAuthFailedError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withExternalOAuthFailedError
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-