react-native-firebase-compiled
Version:
A well tested, feature rich Firebase implementation for React Native, supporting iOS & Android. Individual module support for Admob, Analytics, Auth, Crash Reporting, Cloud Firestore, Database, Dynamic Links, Functions, Messaging (FCM), Remote Config, Sto
32 lines (24 loc) • 899 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
class HttpsError {
// TODO extends Error
constructor(code, message, details) {
_defineProperty(this, "details", void 0);
_defineProperty(this, "message", void 0);
_defineProperty(this, "code", void 0);
// this.code = code;
// this.details = details;
// this.message = message;
// TODO babel 7 issue... can't extend builtin classes properly.
this._error = new Error(message);
this._error.code = code;
this._error.details = details;
this._error.constructor = HttpsError;
return this._error;
}
}
exports.default = HttpsError;
;