HasuraRequestError class
Class HasuraRequestError Responsible for hasura request errors
- Inheritance
-
- Object
- HasuraError
- HasuraRequestError
Constructors
- HasuraRequestError(String message, Extensions? extensions, {Exception? exception, required Request request})
-
HasuraRequestError constructor
const
- HasuraRequestError.fromException(String message, Exception? _exception, {required Request request})
-
Method HasuraRequestError.fromException
receives the
message
, exception andrequest
of an Exception error.factory - HasuraRequestError.fromJson(Map json, {required Request request})
-
Object HasuraRequestError.fromJson
Receives a
json
and a requiredrequest
Converts the error received in json format to a HasuraRequestError Overrides toString as a HasuraRequestError error with the message receivedfactory
Properties
- exception → Exception?
-
Variable exception type Exception
final
- extensions → Extensions?
-
Variable extensions type
Extensions
final - hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
Variable message type String
finalinherited
- request → Request
-
Variable request type Request
finalinherited
- 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 other) → bool -
The equality operator.
inherited