GraphQLException class
An exception that occurs during execution of a GraphQL query.
It's a list of GraphQLError
- Implemented types
- Implementers
Constructors
-
GraphQLException(List<
GraphQLError> errors) -
An exception that occurs during execution of a GraphQL query.
const
-
GraphQLException.fromException(Object error, StackTrace stackTrace, List<
Object> path, {FileSpan? span, Map<String, Object?> ? extensions}) -
Utility factory for creating a GraphQLException from
an
error
andstackTrace
.factory -
GraphQLException.fromMessage(String message, {List<
Object> ? path, SourceLocation? location, Object? sourceError, StackTrace? stackTrace, Map<String, Object?> ? extensions}) -
Creates an GraphQLException with a single GraphQLError
from the given arguments. You may want to pass
sourceError
andstackTrace
for improved error logs.factory
Properties
-
errors
→ List<
GraphQLError> -
A list of all
GraphQLError
s that caused this exception.final - hashCode → int
-
The hash code for this object.
no setterinherited
- 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, Object?> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited