UNPKG

node-framework

Version:

node-framework

29 lines (19 loc) 523 B
/** * @file errorHandler.js * @author sekiyika (px.pengxing@gmail.com) * @description * */ var util = require('util'); var Controller = require('../../index').Controller; function ErrorHandler() { Controller.apply(this, Array.prototype.slice.call(arguments, 0)); } util.inherits(ErrorHandler, Controller); ErrorHandler.prototype.actionHandle404 = function () { this.res.send('404'); }; ErrorHandler.prototype.actionHandle = function () { this.res.send('handle'); }; module.exports = ErrorHandler;