Error class Null safety

An Error represents a Dart language level error. This is distinct from an RPC error.

Inheritance
Implemented types

Constructors

Error({required String? kind, required String? message, required String id, InstanceRef? exception, InstanceRef? stacktrace})

Properties

classRef ClassRef?
If an object is allocated in the Dart heap, it will have a corresponding class object. [...]
@optional, read / write, inherited
exception InstanceRef?
If this error is due to an unhandled exception, this is the exception thrown.
@optional, read / write
fixedId bool?
Provided and set to true if the id of an Object is fixed. If true, the id of an Object is guaranteed not to change or expire. The object may, however, still be Collected.
@optional, read / write, inherited
hashCode int
The hash code for this object. [...]
read-only, override
id String?
A unique identifier for an Object. Passed to the getObject RPC to reload this Object. [...]
read / write, inherited
json Map<String, dynamic>?
read / write, inherited
kind String?
What kind of error is this?
read / write, override
message String?
A description of the error.
read / write, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
size int?
The size of this object in the heap. [...]
@optional, read / write, inherited
stacktrace InstanceRef?
If this error is due to an unhandled exception, this is the stacktrace object.
@optional, read / write
type String
read-only, override

Methods

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

Operators

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

Static Methods

parse(Map<String, dynamic>? json) Error?
override