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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ExternalOAuthFailedError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ExternalOAuthFailedErrorbuilder(ExternalOAuthFailedError template) create builder for ExternalOAuthFailedError instancecopyDeep()static ExternalOAuthFailedErrordeepCopy(ExternalOAuthFailedError template) factory method to create a deep copy of ExternalOAuthFailedError@NotNull StringgetCode()Error identifier.@NotNull StringPlain text description detailing the external OAuth error.static ExternalOAuthFailedErrorof()factory methodstatic ExternalOAuthFailedErrorof(ExternalOAuthFailedError template) factory method to create a shallow copy ExternalOAuthFailedErrorvoidsetMessage(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> Taccessor 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:ErrorObjectError identifier.
- Specified by:
getCodein interfaceErrorObject- Returns:
- code
-
getMessage
Plain text description detailing the external OAuth error. For example,
"External OAuth did not respond in time.".- Specified by:
getMessagein interfaceErrorObject- Returns:
- message
-
setMessage
Plain text description detailing the external OAuth error. For example,
"External OAuth did not respond in time.".- Specified by:
setMessagein 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
-
copyDeep
ExternalOAuthFailedError copyDeep()- Specified by:
copyDeepin interfaceErrorObject
-
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
-