Interface GraphQLGeneralError
- All Superinterfaces:
GraphQLErrorObject
- All Known Implementing Classes:
GraphQLGeneralErrorImpl
Returned when a server-side problem occurs.
If you encounter this error, report it using the Support Portal.
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()
Error identifier.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
Error identifier.
- 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
-