GraphQLResponseError class

Contains an error produced via a GraphQL invocation. Corresponds to one entry in the errors field on a GraphQL response.

locations and path may be null.

Annotations

Constructors

GraphQLResponseError({required String message, List<GraphQLResponseErrorLocation>? locations, List? path, Map<String, dynamic>? extensions})
Contains an error produced via a GraphQL invocation. Corresponds to one entry in the errors field on a GraphQL response.
const
GraphQLResponseError.fromJson(Map<String, dynamic> json)
factory

Properties

extensions Map<String, dynamic>?
Additional context.
final
hashCode int
The hash code for this object.
no setteroverride
locations List<GraphQLResponseErrorLocation>?
The locations of the error-causing fields in the request document.
final
message String
The description of the error.
final
path List?
The key path of the error-causing field in the response's data object.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override