Interface GraphQLInvalidCredentialsError
- All Superinterfaces:
GraphQLErrorObject
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
GraphQLInvalidCredentialsError graphQLInvalidCredentialsError = GraphQLInvalidCredentialsError.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLInvalidCredentialsError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLInvalidCredentialsErrorbuilder
(GraphQLInvalidCredentialsError template) create builder for GraphQLInvalidCredentialsError instancedeepCopy
(GraphQLInvalidCredentialsError template) factory method to create a deep copy of GraphQLInvalidCredentialsError@NotNull String
getCode()
One of the error codes that is listed on the Errors page.of()
factory methodof
(GraphQLInvalidCredentialsError template) factory method to create a shallow copy GraphQLInvalidCredentialsErrorstatic com.fasterxml.jackson.core.type.TypeReference<GraphQLInvalidCredentialsError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
setValue, values, withGraphQLErrorObject
-
Field Details
-
INVALID_CREDENTIALS
discriminator value for GraphQLInvalidCredentialsError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
One of the error codes that is listed on the Errors page.
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Returns:
- code
-
of
factory method- Returns:
- instance of GraphQLInvalidCredentialsError
-
of
factory method to create a shallow copy GraphQLInvalidCredentialsError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static GraphQLInvalidCredentialsError deepCopy(@Nullable GraphQLInvalidCredentialsError template) factory method to create a deep copy of GraphQLInvalidCredentialsError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLInvalidCredentialsError- Returns:
- builder
-
builder
create builder for GraphQLInvalidCredentialsError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLInvalidCredentialsError
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<GraphQLInvalidCredentialsError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-