Interface GraphQLErrorObject
- All Known Subinterfaces:
GraphQLTooManyRequestsError
public interface GraphQLErrorObject
Represents a single error.
Example to create a subtype instance using the builder pattern
GraphQLErrorObject graphQLErrorObject = GraphQLErrorObject.tooManyRequestsBuilder()
.build()
-
Method Summary
Modifier and TypeMethodDescriptioncopyDeep()
static 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.builder for tooManyRequests subtypestatic 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
-
copyDeep
GraphQLErrorObject copyDeep() -
deepCopy
factory method to create a deep copy of GraphQLErrorObject- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
tooManyRequestsBuilder
builder for tooManyRequests subtype- Returns:
- builder
-
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
-