MCPcopy Index your code
hub / github.com/lisong/code-push-server / AppError

Function AppError

core/app-error.js:3–11  ·  view source on GitHub ↗
(msg, constr)

Source from the content-addressed store, hash-verified

1var util = require('util')
2
3var 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}
12util.inherits(AppError, Error)
13
14var NotFoundError = function(msg) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected