{"library":"verror","type":"library","category":null,"description":"The `verror` library, currently at stable version 1.10.1, provides a set of robust error classes designed for creating richer, more debuggable JavaScript errors. Its core strength lies in implementing Joyent's best practices for error handling, offering features like `printf`-style message formatting for clear, human-readable errors, and sophisticated error chaining. `VError` allows chaining errors while preserving messages from all layers of the call stack, providing a comprehensive diagnostic trail. Conversely, `WError` wraps and chains errors but hides lower-level messages from the top-level error, making it suitable for public API endpoints where internal details should be obscured. The library also includes `SError` for stricter `printf` argument validation and `MultiError` for aggregating errors from parallel operations. While highly functional, its release cadence is slow, with the last major update being several years ago, and it primarily targets CommonJS environments, lacking native ESM support. This makes it a mature, stable choice, though potentially requiring adaptation for modern JavaScript module systems.","language":"javascript","status":"maintenance","version":"1.10.1","tags":["javascript","error","errors","err","exception","exceptions","custom"],"last_verified":"Wed May 27","install":[{"cmd":"npm install verror","imports":["const VError = require('verror');","const VError = require('verror');\nconst WError = VError.WError;","const VError = require('verror');\nconst MultiError = VError.MultiError;"]},{"cmd":"yarn add verror","imports":[]},{"cmd":"pnpm add verror","imports":[]}],"homepage":null,"github":"https://github.com/joyent/node-verror","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/verror","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/verror/compatibility"}}