Files
firebase-tools/lib/error.js
2015-10-12 10:42:22 -07:00

10 lines
278 B
JavaScript

var FirebaseError = function(message, options) {
this.name = 'FirebaseError';
this.message = message;
this.children = options.children || [];
this.stack = (new Error()).stack;
};
FirebaseError.prototype = Object.create(Error.prototype);
module.exports = FirebaseError;