Skip to content

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.

License

Notifications You must be signed in to change notification settings

labrynx/error-enhanced

Repository files navigation

Enhanced Error Enrichment for Node.js

npm

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.

Features

  • Unification of Error Objects
  • Use of Enhancers for Dynamic Error Enrichment
  • Enum-based Error Categorization
  • Strongly Typed Interfaces

Quick Start

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);

Installation

To install the package, use the following npm command:

npm install @labrynx/error-enhanced

Documentation

For in-depth documentation, including explanations on enhancers, utilities, enums, and more, please refer to the Wiki.

Contributing

We welcome contributions! Please see our Contributing Guidelines for more information.

Changelog

For a detailed list of changes, check out the CHANGELOG.

About

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.

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •