Package graphql.execution
Class NonNullableFieldWasNullError
- java.lang.Object
 - 
- graphql.execution.NonNullableFieldWasNullError
 
 
- 
- All Implemented Interfaces:
 GraphQLError,java.io.Serializable
public class NonNullableFieldWasNullError extends java.lang.Object implements GraphQLError
This is the base error that indicates that a non null field value was in fact null.- See Also:
 for details, Serialized Form
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface graphql.GraphQLError
GraphQLError.Builder<B extends GraphQLError.Builder<B>> 
 - 
 
- 
Constructor Summary
Constructors Constructor Description NonNullableFieldWasNullError(NonNullableFieldWasNullException exception) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)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-ErrorsinthashCode()java.lang.StringtoString()- 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface graphql.GraphQLError
getExtensions, toSpecification 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
NonNullableFieldWasNullError
public NonNullableFieldWasNullError(NonNullableFieldWasNullException exception)
 
 - 
 
- 
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
 
 
- 
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
 
 
- 
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 
 
- 
getErrorType
public ErrorType getErrorType()
- Specified by:
 getErrorTypein interfaceGraphQLError- Returns:
 - an object classifying this error
 
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
- 
equals
public boolean equals(java.lang.Object o)
- Overrides:
 equalsin classjava.lang.Object
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classjava.lang.Object
 
 - 
 
 -