showFailureToast
Function that shows a failure Toast for a given Error.
Signature
function showFailureToast(
error: unknown,
options?: {
title?: string;
primaryAction?: Toast.ActionOptions;
},
): Promise<T>;Arguments
erroris the error to report.
With a few options:
options.titleis a string describing the action that failed. By default,"Something went wrong"options.primaryActionis a Toast Action.
Return
Returns a Toast.
Example
Last updated

