mirror of
https://github.com/zhigang1992/firebase-tools.git
synced 2026-05-25 18:31:37 +08:00
10 lines
278 B
JavaScript
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;
|