public final class Error
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Error.Location
Represents the location of the error in the GraphQL operation sent to the server.
|
| Constructor and Description |
|---|
Error(java.lang.String message,
java.util.List<Error.Location> locations,
java.util.Map<java.lang.String,java.lang.Object> customAttributes) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
customAttributes()
Returns custom attributes associated with this error
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.util.List<Error.Location> |
locations()
Returns the location of the error in the GraphQL operation.
|
java.lang.String |
message()
Returns server error message.
|
java.lang.String |
toString() |
public Error(@Nullable
java.lang.String message,
@Nullable
java.util.List<Error.Location> locations,
@Nullable
java.util.Map<java.lang.String,java.lang.Object> customAttributes)
@Nullable public java.lang.String message()
@Nonnull public java.util.List<Error.Location> locations()
@Nonnull public java.util.Map<java.lang.String,java.lang.Object> customAttributes()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object