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
15 lines (14 loc) • 427 B
JavaScript
export default class HttpsError {
// TODO extends Error
constructor(code, message, details) {
// 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;
}
}