@ticatec/express-exception
Version:
A comprehensive set of reusable error classes and middleware for Node.js Express applications with standardized error handling and consistent response formats.
10 lines (9 loc) • 415 B
TypeScript
/**
* Express error handling middleware that processes all application errors.
* This function serves as the main entry point for error handling in Express applications.
* @param err - The error object that was thrown or passed to next()
* @param req - Express request object
* @param res - Express response object
*/
declare const handleError: (err: any, req: any, res: any) => void;
export { handleError };