Package graphql.execution
Class NonNullableValueCoercedAsNullException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- graphql.GraphQLException
-
- graphql.execution.NonNullableValueCoercedAsNullException
-
- All Implemented Interfaces:
GraphQLError
,java.io.Serializable
@PublicApi public class NonNullableValueCoercedAsNullException extends GraphQLException implements GraphQLError
This is thrown if a non nullable value is coerced to a null value- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface graphql.GraphQLError
GraphQLError.Builder<B extends GraphQLError.Builder<B>>
-
-
Constructor Summary
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface graphql.GraphQLError
getExtensions, getMessage, toSpecification
-
-
-
-
Constructor Detail
-
NonNullableValueCoercedAsNullException
public NonNullableValueCoercedAsNullException(VariableDefinition variableDefinition, GraphQLType graphQLType)
-
NonNullableValueCoercedAsNullException
public NonNullableValueCoercedAsNullException(VariableDefinition variableDefinition, java.lang.String fieldName, GraphQLType graphQLType)
-
NonNullableValueCoercedAsNullException
public NonNullableValueCoercedAsNullException(VariableDefinition variableDefinition, java.lang.String fieldName, java.util.List<java.lang.Object> path, GraphQLType graphQLType)
-
NonNullableValueCoercedAsNullException
public NonNullableValueCoercedAsNullException(GraphQLType graphQLType)
-
NonNullableValueCoercedAsNullException
public NonNullableValueCoercedAsNullException(VariableDefinition variableDefinition, java.lang.String causeMessage)
-
NonNullableValueCoercedAsNullException
public NonNullableValueCoercedAsNullException(java.lang.String fieldName, java.util.List<java.lang.Object> path, GraphQLType graphQLType)
-
NonNullableValueCoercedAsNullException
public NonNullableValueCoercedAsNullException(GraphQLInputObjectField inputTypeField)
-
NonNullableValueCoercedAsNullException
public NonNullableValueCoercedAsNullException(GraphQLInputObjectField inputTypeField, java.util.List<java.lang.Object> path)
-
NonNullableValueCoercedAsNullException
public NonNullableValueCoercedAsNullException(GraphQLArgument graphQLArgument)
-
-
Method Detail
-
getLocations
public java.util.List<SourceLocation> getLocations()
- Specified by:
getLocations
in interfaceGraphQLError
- Returns:
- the location(s) within the GraphQL document at which the error occurred. Each
SourceLocation
describes the beginning of an associated syntax element
-
getPath
public java.util.List<java.lang.Object> getPath()
Description copied from interface:GraphQLError
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- Specified by:
getPath
in interfaceGraphQLError
- Returns:
- the path in list format
-
getErrorType
public ErrorType getErrorType()
- Specified by:
getErrorType
in interfaceGraphQLError
- Returns:
- an object classifying this error
-
-