2.0.0 • Published 9 months ago
@mssd/errors v2.0.0
@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