Package graphql

Class GraphqlErrorHelper

java.lang.Object
graphql.GraphqlErrorHelper

public class GraphqlErrorHelper extends Object
This little helper allows GraphQlErrors to implement common things (hashcode/ equals ) and to specification more easily
  • Constructor Details

    • GraphqlErrorHelper

      public GraphqlErrorHelper()
  • Method Details

    • toSpecification

      public static Map<String,Object> toSpecification(GraphQLError error)
    • locations

      public static Object locations(List<SourceLocation> locations)
    • location

      public static Object location(SourceLocation location)
      Positive integers starting from 1 required for error locations, from the spec ...
      Parameters:
      location - the source location in play
      Returns:
      a value for source location of the error
    • hashCode

      public static int hashCode(GraphQLError dis)
    • equals

      public static boolean equals(GraphQLError dis, Object o)