Skip to content
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

Integrated @matrixai/errors and setup error chaining and async init #2

Merged
merged 2 commits into from
Apr 5, 2022

Conversation

CMCDragonkai
Copy link
Member

@CMCDragonkai CMCDragonkai commented Apr 5, 2022

Description

This integrates the new @matrixai/errors here.

We've added the static descriptions to each error here in the src/errors.ts.

Additionally all extended errors preserve the generic parameter, so that by default it's typed to unknown.

There's no exit code here because this is a library, and exit codes are for applications which will be handled by PK.

This also adds the new async init into it.

Issues Fixed

Tasks

  • 1. Added @matrixai/errors
  • 2. Added static error descriptions
  • 3. Changed to using error chain
  • 4. Use @matrixai/async-init and changing to ErrorWorkerManagerDestroyed from ErrorWorkerManagerNotRunning

Final checklist

  • Domain specific tests
  • Full tests
  • Updated inline-comment documentation
  • Lint fixed
  • Squash and rebased
  • Sanity check the final build

@CMCDragonkai CMCDragonkai merged commit 17e7ece into master Apr 5, 2022
@CMCDragonkai CMCDragonkai deleted the errorsandasyncinit branch April 5, 2022 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant