Interface GraphQLGeneralError
- All Superinterfaces:
GraphQLErrorObject
Returned when a server-side problem occurs before or after data persistence. In some cases, the requested action may successfully complete after the error is returned. Therefore, it is recommended to verify the status of the requested resource after receiving a 500 error.
If you encounter this error, report it to the Composable Commerce support team.
Example to create an instance using the builder pattern
GraphQLGeneralError graphQLGeneralError = GraphQLGeneralError.builder()
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic GraphQLGeneralErrorBuilder
builder()
builder factory method for GraphQLGeneralErrorstatic GraphQLGeneralErrorBuilder
builder
(GraphQLGeneralError template) create builder for GraphQLGeneralError instancestatic GraphQLGeneralError
deepCopy
(GraphQLGeneralError template) factory method to create a deep copy of GraphQLGeneralError@NotNull String
getCode()
One of the error codes that is listed on the Errors page.static GraphQLGeneralError
of()
factory methodstatic GraphQLGeneralError
of
(GraphQLGeneralError template) factory method to create a shallow copy GraphQLGeneralErrorstatic com.fasterxml.jackson.core.type.TypeReference<GraphQLGeneralError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withGraphQLGeneralError
(Function<GraphQLGeneralError, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
setValue, values, withGraphQLErrorObject
-
Field Details
-
GENERAL
discriminator value for GraphQLGeneralError- 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 GraphQLGeneralError
-
of
factory method to create a shallow copy GraphQLGeneralError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of GraphQLGeneralError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLGeneralError- Returns:
- builder
-
builder
create builder for GraphQLGeneralError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLGeneralError
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
-