Interface GraphQLErrorLocation


public interface GraphQLErrorLocation

Represents the location within your query where the error occurred.


Example to create an instance using the builder pattern

     GraphQLErrorLocation graphQLErrorLocation = GraphQLErrorLocation.builder()
             .line(0.3)
             .column(0.3)
             .build()
 
  • Method Details

    • getLine

      @NotNull @NotNull Long getLine()

      Line number of the query where the error occurred.

      Returns:
      line
    • getColumn

      @NotNull @NotNull Long getColumn()

      Position in line where the error occurred.

      Returns:
      column
    • setLine

      void setLine(Long line)

      Line number of the query where the error occurred.

      Parameters:
      line - value to be set
    • setColumn

      void setColumn(Long column)

      Position in line where the error occurred.

      Parameters:
      column - value to be set
    • of

      static GraphQLErrorLocation of()
      factory method
      Returns:
      instance of GraphQLErrorLocation
    • of

      factory method to create a shallow copy GraphQLErrorLocation
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of GraphQLErrorLocation
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static GraphQLErrorLocationBuilder builder()
      builder factory method for GraphQLErrorLocation
      Returns:
      builder
    • builder

      create builder for GraphQLErrorLocation instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withGraphQLErrorLocation

      default <T> T withGraphQLErrorLocation(Function<GraphQLErrorLocation,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<GraphQLErrorLocation> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference