Supercharge your Node.js error handling with this TypeScript library. Leverage modular architecture to enrich error objects with identifiers, system context, user info, and HTTP statuses. Perfect for debugging, logging, and boosting application robustness. |
---|
- Unification of Error Objects
- Use of Enhancers for Dynamic Error Enrichment
- Enum-based Error Categorization
- Strongly Typed Interfaces
error-enhanced
is a TypeScript library focused on enriching error handling capabilities in Node.js.
Quick Example:
const error = new ErrorEnhanced([new IdentifiersEnhanced()]);
error.setErrorCode(400).setSeverity(ErrorEnhanced.Severity.HIGH);
To install the package, use the following npm command:
npm install @labrynx/error-enhanced
For in-depth documentation, including explanations on enhancers, utilities, enums, and more, please refer to the Wiki.
We welcome contributions! Please see our Contributing Guidelines for more information.
For a detailed list of changes, check out the CHANGELOG.