Skip to main content

Errors

Summary

CodeNameSummary
4000UnknownErrorThe default error response, usually indicates something is not quite right.
4001MethodCanceledErrorWhen a user has rejected the method.
4003MethodNotSupportedErrorThe specified provider does not exist.
4004NetworkNotSupportedErrorNetworks not supported.
4100UnauthorizedSignerErrorThe provider has not given permission to use a specified signer.
4200InvalidInputErrorThe input for signing transactions is malformed.
4201InvalidGroupIdErrorThe computed group ID of the atomic transactions is different from the assigned group ID.
4300FailedToPostSomeTransactionsErrorWhen some transactions were not sent properly.

UnknownError

This error is the default error and serves as the "catch all" error. This usually occurs when something has happened that is outside the bounds of graceful handling. You can check the UnknownError.message string for more information.

Properties

NameTypeValueDescription
codenumber4000A canonical code for this error.
messagestring-A human readable message.

MethodCanceledError

This error is thrown when a user has rejected or canceled the requested action on the wallet. For example, the user decides to cancel the signing of a transaction.

Properties

NameTypeValueDescription
codenumber4001A canonical code for this error.
messagestring-A human readable message.
methodstring-The name of the method that is not supported.

MethodNotSupportedError

This can be thrown by most AVMWebClient methods and indicates that the provider does not support the requested method.

Properties

NameTypeValueDescription
codenumber4003A canonical code for this error.
idstring-The ID of the provider.
messagestring-A human readable message.
methodstring-The name of the method that is not supported.

NetworkNotSupportedError

This error is thrown when a provided genesis hash is not supported by the wallet.

Properties

NameTypeValueDescription
codenumber4004A canonical code for this error.
genesisHashesstring[]-The genesis hashes of the networks that are not supported.
messagestring-A human readable message.

UnauthorizedSignerError

This error is thrown when a provided account has been specified, but the provider has not given permission to use that account as a signer.

Properties

NameTypeValueDescription
codenumber4100A canonical code for this error.
messagestring-A human readable message.
signerstring-The address (public key) of the signer that is not authorized.

InvalidInputError

This error is thrown when the provider attempts to sign transaction(s) but the input is malformed.

Properties

NameTypeValueDescription
codenumber4200A canonical code for this error.
messagestring-A human readable message.

InvalidGroupIdError

This error is thrown when the wallet attempts to sign atomic transactions in which the computed group ID is different from the assigned group ID.

Properties

NameTypeValueDescription
codenumber4201A canonical code for this error.
computedGroupIdstring-The computed ID of the supplied atomic transactions.
messagestring-A human readable message.

FailedToPostSomeTransactionsError

This error is thrown when some transactions failed to be posted to the network.

Properties

NameTypeValueDescription
codenumber4300A canonical code for this error.
messagestring-A human readable message.
successTxnIDs(string | null)[]-This will correspond to the stxns list sent in postTxns and will contain the ID of those transactions that were successfully committed to the blockchain, or null if they failed.