Skip to content

Dart error handling #38

Description

@sneurlax

Following up on #37:

The following additional functions have poor error-handing and could benefit from similar changes as found in #37:

  • scanOutputs
  • cancelTransaction
  • recoverWallet
  • initializeNewWallet
  • createTransaction
  • getChainHeight
  • getAddressInfo
  • deleteWallet
  • openWallet
  • txHttpSend

Fair but could be good:

  • getTransactions
  • validateSendAddress

Good but could be better:

  • getWalletBalances
  • getMnemonic

Lots of catches could use additional error context: where we return the original/passed error, add extra contextual information.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions