Interface GraphQLErrorObject
public interface GraphQLErrorObject
Represents a single error.
Example to create an instance using the builder pattern
GraphQLErrorObject graphQLErrorObject = GraphQLErrorObject.builder()
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic GraphQLErrorObject
deepCopy
(GraphQLErrorObject template) factory method to create a deep copy of GraphQLErrorObject@NotNull String
getCode()
One of the error codes that is listed on the Errors page.void
Error-specific additional fields.static com.fasterxml.jackson.core.type.TypeReference<GraphQLErrorObject>
gives a TypeReference for usage with Jackson DataBindvalues()
Error-specific additional fields.default <T> T
withGraphQLErrorObject
(Function<GraphQLErrorObject, T> helper) accessor map function
-
Method Details
-
getCode
One of the error codes that is listed on the Errors page.
- Returns:
- code
-
values
Error-specific additional fields.
- Returns:
- map of the pattern property values
-
setValue
Error-specific additional fields.
- Parameters:
key
- property namevalue
- property value
-
deepCopy
factory method to create a deep copy of GraphQLErrorObject- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
withGraphQLErrorObject
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
-