error-oop

More oop error classes for nodejs.

Usage no npm install needed!

<script type="module">
  import errorOop from 'https://cdn.skypack.dev/error-oop';
</script>

README

error-oop

More oop error classes for nodejs.

  • Full suite of node.js Error classes.
  • Append stack traces from other generated Errors
  • Full typescript code, provide typescript declarations
  • Support CommonJS and ESModule, support tree shaking

Install

npm install error-oop or yarn add error-oop.

Errors

Click to know how to use them.

Wrappered Native Errors

More OOP Errors

If you want to create your own custom errors, please see User Guide For Custom Errors.

Errors to Support

  • ValidationError
  • Data
    • SQLError