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
npm install error-oop
or yarn add error-oop
.
Click to know how to use them.
NativeError
, aliasError
NativeRangeError
, aliasRangeError
NativeReferenceError
, aliasReferenceError
NativeSyntaxError
, aliasSyntaxError
NativeTypeError
, aliasTypeError
NativeURIError
, aliasURIError
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.
- ValidationError
- Data
- SQLError