MCPcopy Create free account
hub / github.com/NativeScript/firebase / fromNative

Method fromNative

packages/firebase-core/index.ios.ts:7–11  ·  view source on GitHub ↗
(native: NSError, message?: string)

Source from the content-addressed store, hash-verified

5export class FirebaseError extends Error {
6 _native: NSError;
7 static fromNative(native: NSError, message?: string) {
8 const error = new FirebaseError(message || native?.localizedDescription);
9 error._native = native;
10 return error;
11 }
12
13 get native() {
14 return this._native;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected