Package graphql.execution
Class NonNullableFieldWasNullException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
graphql.execution.NonNullableFieldWasNullException
- All Implemented Interfaces:
Serializable
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:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNonNullableFieldWasNullException
(ExecutionStepInfo executionStepInfo, ResultPath path) NonNullableFieldWasNullException
(NonNullableFieldWasNullException previousException) -
Method Summary
Modifier and TypeMethodDescriptiongetPath()
private static String
mkMessage
(ExecutionStepInfo executionStepInfo, ResultPath path) toString()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace