Package graphql

Class GraphqlErrorException

    • Method Detail

      • 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
      • 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 interface GraphQLError
        Returns:
        the path in list format
      • getExtensions

        public java.util.Map<java.lang.String,​java.lang.Object> getExtensions()
        Specified by:
        getExtensions in interface GraphQLError
        Returns:
        a map of error extensions or null if there are none