UNPKG

@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.

16 lines (15 loc) 1.4 kB
"use strict"; /** * @fileoverview Express exception handling library that provides standardized error types and error handling middleware. * This library offers a comprehensive solution for handling various types of application errors in Express.js applications. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.handleError = exports.ActionNotFoundError = exports.IllegalParameterError = exports.InsufficientPermissionError = exports.UnauthenticatedError = exports.AppError = void 0; const Errors_1 = require("./Errors"); Object.defineProperty(exports, "AppError", { enumerable: true, get: function () { return Errors_1.AppError; } }); Object.defineProperty(exports, "UnauthenticatedError", { enumerable: true, get: function () { return Errors_1.UnauthenticatedError; } }); Object.defineProperty(exports, "InsufficientPermissionError", { enumerable: true, get: function () { return Errors_1.InsufficientPermissionError; } }); Object.defineProperty(exports, "IllegalParameterError", { enumerable: true, get: function () { return Errors_1.IllegalParameterError; } }); Object.defineProperty(exports, "ActionNotFoundError", { enumerable: true, get: function () { return Errors_1.ActionNotFoundError; } }); const handleError_1 = require("./handleError"); Object.defineProperty(exports, "handleError", { enumerable: true, get: function () { return handleError_1.handleError; } });