@PublicApi public class NonNullableValueCoercedAsNullException extends GraphQLException implements GraphQLError
GraphQLError.Builder<B extends GraphQLError.Builder<B>>
Modifier and Type | Method and Description |
---|---|
ErrorType |
getErrorType() |
java.util.List<SourceLocation> |
getLocations() |
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
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getExtensions, getMessage, newError, toSpecification
public NonNullableValueCoercedAsNullException(VariableDefinition variableDefinition, GraphQLType graphQLType)
public NonNullableValueCoercedAsNullException(VariableDefinition variableDefinition, java.lang.String fieldName, GraphQLType graphQLType)
public NonNullableValueCoercedAsNullException(VariableDefinition variableDefinition, java.lang.String fieldName, java.util.List<java.lang.Object> path, GraphQLType graphQLType)
public NonNullableValueCoercedAsNullException(GraphQLType graphQLType)
public NonNullableValueCoercedAsNullException(VariableDefinition variableDefinition, java.lang.String causeMessage)
public NonNullableValueCoercedAsNullException(java.lang.String fieldName, java.util.List<java.lang.Object> path, GraphQLType graphQLType)
public NonNullableValueCoercedAsNullException(GraphQLInputObjectField inputTypeField)
public NonNullableValueCoercedAsNullException(GraphQLInputObjectField inputTypeField, java.util.List<java.lang.Object> path)
public NonNullableValueCoercedAsNullException(GraphQLArgument graphQLArgument)
public java.util.List<SourceLocation> getLocations()
getLocations
in interface GraphQLError
SourceLocation
describes the beginning of an associated syntax elementpublic java.util.List<java.lang.Object> getPath()
GraphQLError
getPath
in interface GraphQLError
public ErrorType getErrorType()
getErrorType
in interface GraphQLError