Class 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
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Specified by:
        getMessage in interface GraphQLError
        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: GraphQLError
        The graphql spec says that the (optional) path field of any error must be a list of path entries starting at the root of the response and ending with the field associated with the error https://spec.graphql.org/draft/#sec-Errors.Error-Result-Format
        Specified by:
        getPath in interface GraphQLError
        Returns:
        the path in list format
      • getLocations

        public java.util.List<SourceLocation> getLocations()
        Specified by:
        getLocations in interface GraphQLError
        Returns:
        the location(s) within the GraphQL document at which the error occurred. Each SourceLocation describes the beginning of an associated syntax element
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object