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

Function toHttpsError

packages/firebase-functions/index.ios.ts:126–133  ·  view source on GitHub ↗
(error: NSError)

Source from the content-addressed store, hash-verified

124}
125
126function toHttpsError(error: NSError) {
127 let details = null;
128 if (error.domain == FIRFunctionsErrorDomain) {
129 details = error.userInfo[FIRFunctionsErrorDetailsKey];
130 }
131
132 return new HttpsError(errorToCode(error), error.localizedDescription, details, error);
133}
134
135export class Functions implements IFunctions {
136 _native: FIRFunctions;

Callers 1

httpsCallableMethod · 0.70

Calls 1

errorToCodeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…