Class FieldValidationSupport.FieldAndArgError
java.lang.Object
graphql.execution.instrumentation.fieldvalidation.FieldValidationSupport.FieldAndArgError
- All Implemented Interfaces:
GraphQLError, Serializable
- Enclosing class:
FieldValidationSupport
-
Nested Class Summary
Nested classes/interfaces inherited from interface GraphQLError
GraphQLError.Builder<B> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPath()The graphql spec says that the (optional) path field of any error should be a list of path entries https://spec.graphql.org/October2021/#sec-Handling-Field-ErrorsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GraphQLError
getExtensions, toSpecification
-
Field Details
-
message
-
locations
-
path
-
-
Constructor Details
-
FieldAndArgError
FieldAndArgError(String message, Field field, ResultPath path)
-
-
Method Details
-
getMessage
- Specified by:
getMessagein interfaceGraphQLError- Returns:
- a description of the error intended for the developer as a guide to understand and correct the error
-
getErrorType
- Specified by:
getErrorTypein interfaceGraphQLError- Returns:
- an object classifying this error
-
getLocations
- Specified by:
getLocationsin interfaceGraphQLError- Returns:
- the location(s) within the GraphQL document at which the error occurred. Each
SourceLocationdescribes the beginning of an associated syntax element
-
getPath
Description copied from interface:GraphQLErrorThe graphql spec says that the (optional) path field of any error should be a list of path entries https://spec.graphql.org/October2021/#sec-Handling-Field-Errors- Specified by:
getPathin interfaceGraphQLError- Returns:
- the path in list format
-