Cutie extension for error module in Node.
npm install @cuties/error


Cutie extension for error module in Node. It's based on the Async Tree Pattern.
You can find examples of using this library in the test directory.
npm install @cuties/error
npm test
npm run build
``js`
const {
// Needed async objects here from the table below
} = require('@cuties/error');
For more information about parameters in the async objects visit docs of Node for error module.
| Async Object | Async/sync call | Parameters(default value/description) | Representation result |
| ------------- | ----------------| ---------- | --------------------- |
| CapturedStackTrace | Error.captureStackTrace | targetObject, constructorOpt | targetObject |Errno
| | error.errno | error | string\|number |ErrorAddress
| | error.address | error | string |ErrorCode
| | error.code | error | string |ErrorMessage
| | error.message | error | string |ErrorPath
| | error.path | error | string |ErrorPort
| | error.port | error | number |ErrorStack
| | error.stack | error | string |ErrorSyscall
| | error.syscall | error | string |SetStackTraceLimit
| | Error.stackTraceLimit | num | num |StackTraceLimit
| | Error.stackTraceLimit | | num |ThrownError
| | throw error` | | |