mirror of
https://github.com/zhigang1992/firebase-tools.git
synced 2026-05-25 01:11:37 +08:00
18 lines
463 B
JavaScript
18 lines
463 B
JavaScript
'use strict';
|
|
|
|
var FirebaseError = function(message, options) {
|
|
options = options || {};
|
|
|
|
this.name = 'FirebaseError';
|
|
this.message = message;
|
|
this.children = options.children || [];
|
|
this.status = options.status || 500;
|
|
this.exit = options.exit || 1;
|
|
this.stack = (new Error()).stack;
|
|
this.original = options.original;
|
|
this.context = options.context;
|
|
};
|
|
FirebaseError.prototype = Object.create(Error.prototype);
|
|
|
|
module.exports = FirebaseError;
|