Interface InvalidCredentialsError
- All Superinterfaces:
ErrorObject
Returned when a Customer with the given credentials (matching the given email/password pair) is not found and authentication fails.
The error is returned as a failed response to:
- Authenticate (sign in) Customer and Authenticate (sign in) Customer in Store requests on Customers.
- Authenticate (sign in) Customer and Authenticate (sign in) Customer in Store requests on My Customer Profile.
Example to create an instance using the builder pattern
InvalidCredentialsError invalidCredentialsError = InvalidCredentialsError.builder()
.message("{message}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for InvalidCredentialsError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for InvalidCredentialsErrorbuilder
(InvalidCredentialsError template) create builder for InvalidCredentialsError instancestatic InvalidCredentialsError
deepCopy
(InvalidCredentialsError template) factory method to create a deep copy of InvalidCredentialsError@NotNull String
getCode()
Error identifier.@NotNull String
"Account with the given credentials not found."
static InvalidCredentialsError
of()
factory methodstatic InvalidCredentialsError
of
(InvalidCredentialsError template) factory method to create a shallow copy InvalidCredentialsErrorvoid
setMessage
(String message) "Account with the given credentials not found."
static com.fasterxml.jackson.core.type.TypeReference<InvalidCredentialsError>
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
-
INVALID_CREDENTIALS
discriminator value for InvalidCredentialsError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
getMessage
"Account with the given credentials not found."
- Specified by:
getMessage
in interfaceErrorObject
- Returns:
- message
-
setMessage
"Account with the given credentials not found."
- Specified by:
setMessage
in interfaceErrorObject
- Parameters:
message
- value to be set
-
of
factory method- Returns:
- instance of InvalidCredentialsError
-
of
factory method to create a shallow copy InvalidCredentialsError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of InvalidCredentialsError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for InvalidCredentialsError- Returns:
- builder
-
builder
create builder for InvalidCredentialsError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withInvalidCredentialsError
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
-