0.6.0 • Published 4 years ago
error-oop v0.6.0
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
NativeError, aliasErrorNativeRangeError, aliasRangeErrorNativeReferenceError, aliasReferenceErrorNativeSyntaxError, aliasSyntaxErrorNativeTypeError, aliasTypeErrorNativeURIError, aliasURIError
More OOP Errors
AlreadyInUseErrorArgumentErrorArgumentNullErrorArgumentOutOfRangeErrorAuthenticationErrorAuthenticationRequiredErrorConnectionErrorDataErrorDirectoryNotFoundErrorDriveNotFoundErrorEndOfStreamErrorFileLoadErrorFileNotFoundErrorIndexOutOfRangeErrorInvalidDataErrorInvalidOperationErrorIOErrorNotFoundErrorNotImplementedErrorNotPermittedErrorNotSupportedErrorOperationCanceledErrorOutOfMemoryErrorPathTooLongErrorSocketErrorStackOverflowErrorTimeoutErrorTransactionErrorUnauthorizedAccessErrorUnauthorizedError
If you want to create your own custom errors, please see User Guide For Custom Errors.
Errors to Support
- ValidationError
- Data
- SQLError