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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for InvalidCredentialsError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for InvalidCredentialsErrorbuilder(InvalidCredentialsError template) create builder for InvalidCredentialsError instancecopyDeep()static InvalidCredentialsErrordeepCopy(InvalidCredentialsError template) factory method to create a deep copy of InvalidCredentialsError@NotNull StringgetCode()Error identifier.@NotNull String"Account with the given credentials not found."static InvalidCredentialsErrorof()factory methodstatic InvalidCredentialsErrorof(InvalidCredentialsError template) factory method to create a shallow copy InvalidCredentialsErrorvoidsetMessage(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> Taccessor 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:ErrorObjectError identifier.
- Specified by:
getCodein interfaceErrorObject- Returns:
- code
-
getMessage
"Account with the given credentials not found."- Specified by:
getMessagein interfaceErrorObject- Returns:
- message
-
setMessage
"Account with the given credentials not found."- Specified by:
setMessagein 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
-
copyDeep
InvalidCredentialsError copyDeep()- Specified by:
copyDeepin interfaceErrorObject
-
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
-