0.2.0 • Published 3 years ago
node-errors-pro v0.2.0
node-errors-pro
More 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 node-errors-pro
or yarn add node-errors-pro
.
Errors
Click to know how to use them.
Native Errors Pro
- ErrorPro (or Error)
- RangeErrorPro (or RangeError)
- ReferenceErrorPro (or ReferenceError)
- SyntaxErrorPro (or SyntaxError)
- TypeErrorPro (or TypeError)
- URIErrorPro (or URIError)
More Useful Errors
- AlreadyInUseError
- ArgumentError
- ArgumentNullError
- ArgumentOutOfRangeError
- AuthenticationError
- AuthenticationRequiredError
- ConnectionError
- IndexOutOfRangeError
- InvalidOperationError
- NotFoundError
- NotImplementedError
- NotPermittedError
- NotSupportedError
- OperationCanceledError
- OutOfMemoryError
- StackOverflowError
- TimeoutError
- UnauthorizedAccessError
- UnauthorizedError
- Data
- IO
If you want to create your own custom errors, please see How To Create Custom Errors.
Errors to Support
- ValidationError
- Data
- SQLError
- IO
- InvalidDataError