Package graphql.execution
Class NonNullableFieldWasNullException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- graphql.execution.NonNullableFieldWasNullException
-
- All Implemented Interfaces:
java.io.Serializable
public class NonNullableFieldWasNullException extends java.lang.RuntimeException
See (https://spec.graphql.org/October2021/#sec-Errors-and-Non-Nullability), but if a non nullable field actually resolves to a null value and the parent type is nullable then the parent must in fact become null so we use exceptions to indicate this special case- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NonNullableFieldWasNullException(ExecutionStepInfo executionStepInfo, ResultPath path)
NonNullableFieldWasNullException(NonNullableFieldWasNullException previousException)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutionStepInfo
getExecutionStepInfo()
ResultPath
getPath()
java.lang.String
toString()
-
-
-
Constructor Detail
-
NonNullableFieldWasNullException
public NonNullableFieldWasNullException(ExecutionStepInfo executionStepInfo, ResultPath path)
-
NonNullableFieldWasNullException
public NonNullableFieldWasNullException(NonNullableFieldWasNullException previousException)
-
-
Method Detail
-
getExecutionStepInfo
public ExecutionStepInfo getExecutionStepInfo()
-
getPath
public ResultPath getPath()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Throwable
-
-