(msg, constr)
| 1 | var util = require('util') |
| 2 | |
| 3 | var AppError = function (msg, constr) { |
| 4 | if(msg) { |
| 5 | msg = msg.toString(); |
| 6 | } |
| 7 | Error.captureStackTrace(this, constr || this) |
| 8 | this.message = msg || 'Error' |
| 9 | this.name = 'AppError' |
| 10 | this.status = 200 |
| 11 | } |
| 12 | util.inherits(AppError, Error) |
| 13 | |
| 14 | var NotFoundError = function(msg) { |
nothing calls this directly
no outgoing calls
no test coverage detected