You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- `isQuotaExceededOrRecordUsage(qualifier?:string)` — Checks if quota was exceed. If not — it records the call time in the appropriate backend.
193
193
194
-
- `rejectOnQuotaExceededOrRecordUsage(qualifier?:string)` — Checks if quota was exceed. If not — it records the call time in the appropriate backend and is rejected with *functions.https.HttpsException*. This particular exception can be caught when calling the firebase function directly (see https://firebase.google.com/docs/functions/callable).
194
+
- `rejectOnQuotaExceededOrRecordUsage(qualifier?:string, errorFactory?: (configuration) =>Error)` — Checks if quota was exceed. If not — it records the call time in the appropriate backend and is rejected with *functions.https.HttpsException*. This particular exception can be caught when calling the firebase function directly (see https://firebase.google.com/docs/functions/callable). When errorFactory is provided, it is used to obtain error that is thrown in case of exceeded limit.
195
195
196
196
- `isQuotaAlreadyExceeded(qualifier?:string)` — Checks if quota was exceed, but does not record a usage. If you use this, you must call isQuotaExceededOrRecordUsage() to record the usage.
0 commit comments