Class FieldValidationSupport.FieldAndArgError
- java.lang.Object
-
- graphql.execution.instrumentation.fieldvalidation.FieldValidationSupport.FieldAndArgError
-
- All Implemented Interfaces:
GraphQLError,java.io.Serializable
- Enclosing class:
- FieldValidationSupport
private static class FieldValidationSupport.FieldAndArgError extends java.lang.Object implements GraphQLError
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface graphql.GraphQLError
GraphQLError.Builder<B extends GraphQLError.Builder<B>>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<SourceLocation>locationsprivate java.lang.Stringmessageprivate java.util.List<java.lang.Object>path
-
Constructor Summary
Constructors Constructor Description FieldAndArgError(java.lang.String message, Field field, ResultPath path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorTypegetErrorType()java.util.List<SourceLocation>getLocations()java.lang.StringgetMessage()java.util.List<java.lang.Object>getPath()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-Errors-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface graphql.GraphQLError
getExtensions, toSpecification
-
-
-
-
Field Detail
-
message
private final java.lang.String message
-
locations
private final java.util.List<SourceLocation> locations
-
path
private final java.util.List<java.lang.Object> path
-
-
Constructor Detail
-
FieldAndArgError
FieldAndArgError(java.lang.String message, Field field, ResultPath path)
-
-
Method Detail
-
getMessage
public java.lang.String 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
public ErrorType getErrorType()
- Specified by:
getErrorTypein interfaceGraphQLError- Returns:
- an object classifying this error
-
getLocations
public java.util.List<SourceLocation> 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
public java.util.List<java.lang.Object> 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
-
-