@mssd/errors
v2.1.0
Published
A standardized error handling package for microservices. @mssd/errors provides middleware, error types, and utilities to manage and handle errors consistently across services in a microservices architecture.
Downloads
322
Maintainers
Readme
@mssd/errors
@mssd/errors is a standardized error-handling package for microservices. It provides middleware, custom error types, and utilities that enable consistent and reliable error handling across services in a microservices architecture.
Features
- Error Middleware: Easily integrate error handling middleware in Express applications.
- Custom Error Types: Utilize predefined error classes for common error scenarios, such as
NotFoundError
,ValidationError
,AuthenticationError
, etc. - Error Utilities: Helper functions to simplify error handling and improve consistency across different services.
- Standardized Responses: Generate standardized error responses, making it easy to handle and interpret errors within and across microservices.
Installation
Install @mssd/errors using npm:
npm install @mssd/errors