Sets the processing state of an extension instance.
Runtime.setFatalError()
Reports a fatal error while running a lifecycle event handler.
Call this method when a lifecycle event handler fails in a way that makes the Instance inoperable. If the lifecycle event failed but the instance will still work as expected, call setProcessingState with the "PROCESSING_WARNING" or "PROCESSING_FAILED" state instead.
Signature:
setFatalError(errorMessage:string):Promise<void>;
Parameters
Parameter
Type
Description
errorMessage
string
A message explaining what went wrong and how to fix it.
Returns:
Promise<void>
Runtime.setProcessingState()
Sets the processing state of an extension instance.
Use this method to report the results of a lifecycle event handler.
If the lifecycle event failed & the extension instance will no longer work correctly, use Runtime.setFatalError() instead.
To report the status of function calls other than lifecycle event handlers, use console.log or the Cloud Functions logger SDK.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-11-17 UTC."],[],[],null,["Runtime provides methods to modify an extension instance's runtime data.\n\n**Signature:** \n\n export declare class Runtime \n\nMethods\n\nRuntime.setFatalError()\n\nReports a fatal error while running a lifecycle event handler.\n\nCall this method when a lifecycle event handler fails in a way that makes the Instance inoperable. If the lifecycle event failed but the instance will still work as expected, call `setProcessingState` with the \"PROCESSING_WARNING\" or \"PROCESSING_FAILED\" state instead.\n\n**Signature:** \n\n setFatalError(errorMessage: string): Promise\u003cvoid\u003e;\n\nParameters\n\n**Returns:**\n\nPromise\\\u003cvoid\\\u003e\n\nRuntime.setProcessingState()\n\nSets the processing state of an extension instance.\n\nUse this method to report the results of a lifecycle event handler.\n\nIf the lifecycle event failed \\& the extension instance will no longer work correctly, use [Runtime.setFatalError()](./firebase-admin.extensions.runtime.md#runtimesetfatalerror) instead.\n\nTo report the status of function calls other than lifecycle event handlers, use `console.log` or the Cloud Functions logger SDK.\n\n**Signature:** \n\n setProcessingState(state: SettableProcessingState, detailMessage: string): Promise\u003cvoid\u003e;\n\nParameters\n\n**Returns:**\n\nPromise\\\u003cvoid\\\u003e"]]