AptosError class abstract

This is the generic struct we use for all API errors, it contains a string message and an Aptos API specific error code.

Properties:

  • message - A message describing the error
  • errorCode
  • vmErrorCode - A code providing VM error details when submitting transactions to the VM
Annotations
  • @BuiltValue()

Constructors

AptosError([void updates(AptosErrorBuilder b)])
factory

Properties

errorCode AptosErrorCode
no setter
hashCode int
The hash code for this object.
no setterinherited
message String
A message describing the error
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
vmErrorCode int?
A code providing VM error details when submitting transactions to the VM
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rebuild(dynamic updates(AptosErrorBuilder)) AptosError
Rebuilds the instance.
inherited
toBuilder() AptosErrorBuilder
Converts the instance to a builder B.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

serializer → Serializer<AptosError>
no setter