Skip to content

Error handling #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 23, 2024
Merged

Error handling #37

merged 2 commits into from
Jan 23, 2024

Conversation

sneurlax
Copy link
Member

@sneurlax sneurlax commented Jan 22, 2024

Thanks for the error handling code sample, Julian!

The following additional functions have poor error-handing and could benefit from similar changes:

  • 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.

@sneurlax sneurlax mentioned this pull request Jan 23, 2024
14 tasks
@sneurlax sneurlax merged commit c976dcf into main Jan 23, 2024
@sneurlax sneurlax deleted the error-handling branch March 4, 2024 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant