GraphQLError class

GraphQL Error returned if execution fails

Annotations
  • @immutable

Constructors

GraphQLError({required String message, List<ErrorLocation>? locations, List? path, Map<String, dynamic>? extensions})
const

Properties

extensions → Map<String, dynamic>?
Implementation-specific extensions to this error
final
hashCode → int
The hash code for this object.
no setteroverride
locations → List<ErrorLocation>?
Locations of the nodes in document which caused the error
final
message → String
Error message
final
path → List?
Path of the error node in the query
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
toString() → String
A string representation of this object.
override

Operators

operator ==(Object o) → bool
The equality operator.
override