xcore-express
Version:
A lightweight library that brings middlewares to handle error reporting in web applications using Node and Express.
20 lines (18 loc) • 784 B
JavaScript
/**
* @module xcore
* @author Zeeshan Mian
* @link https://github.com/zmian/xcore-express
*/
var exceptions = require('xcore-exceptions');
module.exports = {
Logger: require('./middlewares/logger'),
ErrorHandler: require('./middlewares/errorHandler'),
Exception: exceptions.Exception,
ArgumentException: exceptions.ArgumentException,
InvalidInputException: exceptions.InvalidInputException,
NotImplementedException: exceptions.NotImplementedException,
NotSupportedException: exceptions.NotSupportedException,
NotFoundException: exceptions.NotFoundException,
UnauthenticatedException: exceptions.UnauthenticatedException,
UnauthorizedException: exceptions.UnauthorizedException
};