error-oop
v0.6.0
Published
More oop error classes for nodejs.
Downloads
67
Maintainers
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
NativeError
, aliasError
NativeRangeError
, aliasRangeError
NativeReferenceError
, aliasReferenceError
NativeSyntaxError
, aliasSyntaxError
NativeTypeError
, aliasTypeError
NativeURIError
, aliasURIError
More OOP Errors
AlreadyInUseError
ArgumentError
ArgumentNullError
ArgumentOutOfRangeError
AuthenticationError
AuthenticationRequiredError
ConnectionError
DataError
DirectoryNotFoundError
DriveNotFoundError
EndOfStreamError
FileLoadError
FileNotFoundError
IndexOutOfRangeError
InvalidDataError
InvalidOperationError
IOError
NotFoundError
NotImplementedError
NotPermittedError
NotSupportedError
OperationCanceledError
OutOfMemoryError
PathTooLongError
SocketError
StackOverflowError
TimeoutError
TransactionError
UnauthorizedAccessError
UnauthorizedError
If you want to create your own custom errors, please see User Guide For Custom Errors.
Errors to Support
- ValidationError
- Data
- SQLError