@SuppressWarnings("EqualsWhichDoesntCheckParameterClass") @Override public boolean equals(Object o) { return GraphqlErrorHelper.equals(this, o); }
@Override public int hashCode() { return GraphqlErrorHelper.hashCode(this); } }
/** * The graphql specification says that result of a call should be a map that follows certain rules on what items * should be present. Certain JSON serializers may or may interpret the error to spec, so this method * is provided to produce a map that strictly follows the specification. * * See : <a href="http://facebook.github.io/graphql/#sec-Errors">http://facebook.github.io/graphql/#sec-Errors</a> * * @return a map of the error that strictly follows the specification */ default Map<String, Object> toSpecification() { return GraphqlErrorHelper.toSpecification(this); }
public static Map<String, Object> toSpecification(GraphQLError error) { Map<String, Object> errorMap = new LinkedHashMap<>(); errorMap.put("message", error.getMessage()); if (error.getLocations() != null) { errorMap.put("locations", locations(error.getLocations())); } if (error.getPath() != null) { errorMap.put("path", error.getPath()); } if (error.getExtensions() != null) { errorMap.put("extensions", error.getExtensions()); } return errorMap; }
public static Map<String, Object> toSpecification(GraphQLError error) { Map<String, Object> errorMap = new LinkedHashMap<>(); errorMap.put("message", error.getMessage()); if (error.getLocations() != null) { errorMap.put("locations", locations(error.getLocations())); } if (error.getPath() != null) { errorMap.put("path", error.getPath()); } if (error.getExtensions() != null) { errorMap.put("extensions", error.getExtensions()); } return errorMap; }
@SuppressWarnings("EqualsWhichDoesntCheckParameterClass") @Override public boolean equals(Object o) { return GraphqlErrorHelper.equals(this, o); }
@Override public int hashCode() { return GraphqlErrorHelper.hashCode(this); } }
/** * The graphql specification says that result of a call should be a map that follows certain rules on what items * should be present. Certain JSON serializers may or may interpret the error to spec, so this method * is provided to produce a map that strictly follows the specification. * * See : <a href="http://facebook.github.io/graphql/#sec-Errors">http://facebook.github.io/graphql/#sec-Errors</a> * * @return a map of the error that strictly follows the specification */ default Map<String, Object> toSpecification() { return GraphqlErrorHelper.toSpecification(this); }
@SuppressWarnings("EqualsWhichDoesntCheckParameterClass") @Override public boolean equals(Object o) { return GraphqlErrorHelper.equals(this, o); }
@Override public int hashCode() { return GraphqlErrorHelper.hashCode(this); } }
@SuppressWarnings("EqualsWhichDoesntCheckParameterClass") @Override public boolean equals(Object o) { return GraphqlErrorHelper.equals(this, o); }
@Override public int hashCode() { return GraphqlErrorHelper.hashCode(this); } }
@SuppressWarnings("EqualsWhichDoesntCheckParameterClass") @Override public boolean equals(Object o) { return GraphqlErrorHelper.equals(this, o); }
@Override public int hashCode() { return GraphqlErrorHelper.hashCode(this); }
@SuppressWarnings("EqualsWhichDoesntCheckParameterClass") @Override public boolean equals(Object o) { return GraphqlErrorHelper.equals(this, o); }
@Override public int hashCode() { return GraphqlErrorHelper.hashCode(this); }
@SuppressWarnings("EqualsWhichDoesntCheckParameterClass") @Override public boolean equals(Object o) { return GraphqlErrorHelper.equals(this, o); }
@Override public int hashCode() { return GraphqlErrorHelper.hashCode(this); } }
@SuppressWarnings("EqualsWhichDoesntCheckParameterClass") @Override public boolean equals(Object o) { return GraphqlErrorHelper.equals(this, o); }
@Override public int hashCode() { return GraphqlErrorHelper.hashCode(this); } }