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
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic GraphQLGeneralErrorBuilderbuilder()builder factory method for GraphQLGeneralErrorstatic GraphQLGeneralErrorBuilderbuilder(GraphQLGeneralError template) create builder for GraphQLGeneralError instancecopyDeep()static GraphQLGeneralErrordeepCopy(GraphQLGeneralError template) factory method to create a deep copy of GraphQLGeneralError@NotNull StringgetCode()One of the error codes that is listed on the Errors page.static GraphQLGeneralErrorof()factory methodstatic GraphQLGeneralErrorof(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> TwithGraphQLGeneralError(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:GraphQLErrorObjectOne of the error codes that is listed on the Errors page.
- Specified by:
getCodein 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
-
copyDeep
GraphQLGeneralError copyDeep()- Specified by:
copyDeepin interfaceGraphQLErrorObject
-
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
-