MatrixAI / js-db

Key-Value DB for TypeScript and JavaScript Applications
https://polykey.com
Apache License 2.0
5 stars 0 forks source link

Integrated @matrixai/errors and setup error chaining #14

Closed CMCDragonkai closed 2 years ago

CMCDragonkai commented 2 years ago

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.

Issues Fixed

Tasks

Final checklist

CMCDragonkai commented 2 years ago

This will be a minor upgrade, no API guarantee is on the errors atm.