ethers-error-parser

Parse Ethers.js errors with ease ๐Ÿ’…๐Ÿป

MIT License

Downloads
14.6K
Stars
66
Committers
3
ethers-error-parser - Expose types (v0.2.3) Latest Release

Published by enzoferey almost 2 years ago

Highlights

  • Exports the EthersError and ReturnValue types for easier usage in TypeScript.

Changes

  • feat: expose types for better TypeScript usage #40
  • core: bump version to v0.2.3 #41
ethers-error-parser - Expose return error codes (v0.2.2)

Published by enzoferey about 2 years ago

Highlights

  • Exports the RETURN_VALUE_ERROR_CODES constants object that defines the possible errorCode returned by getParsedEthersError.

Changes

  • feat: expose RETURN_VALUE_ERROR_CODES constant #34
  • core: bump version to v0.2.2 #35
ethers-error-parser - New errors support (v0.2.1)

Published by enzoferey about 2 years ago

Highlights

  • Supports transaction rejected via ethers code ACTION_REJECTED.
  • Supports calls reverts via ethers code code CALL_EXCEPTION.

Changes

  • docs: add missing return error codes #22
  • docs: add pull requests templates #23
  • docs: change to single pull request template #24
  • docs: fix checklist title formatting #25
  • feat: support transaction rejected via code #28
  • feat: support call reverted #29
  • docs: display package size via badge #30
  • core: bump version to v0.2.1 #31
ethers-error-parser - New errors support (v0.2.0)

Published by enzoferey about 2 years ago

Breaking changes

  • TRANSACTION_RUN_OUT_OF_GAS returned error code has been renamed to TRANSACTION_RAN_OUT_OF_GAS.

Changes

ethers-error-parser - Core improvements (v0.1.1)

Published by enzoferey over 2 years ago

Changes

ethers-error-parser - First release (v0.1.0)

Published by enzoferey over 2 years ago

Parse Ethers.js errors with ease ๐Ÿ’…๐Ÿป

This package is a work in progress. Although it is not yet complete and many Ethers errors could be handled more elegantly, it is safe to use in production as it is. Some insights is better than no insights.

This package is being used in different production projects and it is in constant evolution based on the needs of these projects. If you find some error that is not handled yet or that does not provide a great context, please open an issue or pull request ๐Ÿ™