public interface GraphQLError
| Modifier and Type | Method and Description |
|---|---|
default String |
getClassification()
The general type of failure
|
default String |
getCode()
A stable error code
|
default String |
getDescription()
A human-readable description of the failure
|
default String |
getException()
The name of the exception thrown in the service.
|
Map<String,Object> |
getExtensions()
Contents of the `extensions` field.
|
List<Map<String,Integer>> |
getLocations()
List of locations in the request that correspond to this error.
|
String |
getMessage()
Textual description of the error, supplied by the service.
|
Map<String,Object> |
getOtherFields()
Any other fields beyond message, locations, path and extensions.
|
Object[] |
getPath()
The path to the response field where the error arose.
|
default String |
getQueryPath()
The path within the GraphQL query that was rejected
|
default String |
getStringExtension(String name)
Contents of one of the `extensions` fields, converted to a String.
|
default String |
getValidationErrorType()
The type of mistake leading to the rejection of the GraphQL query
|
String getMessage()
List<Map<String,Integer>> getLocations()
Object[] getPath()
Map<String,Object> getExtensions()
Map<String,Object> getOtherFields()
default String getStringExtension(String name)
default String getException()
getCode()default String getClassification()
default String getCode()
default String getDescription()
default String getValidationErrorType()
default String getQueryPath()
Copyright © 2018–2022. All rights reserved.