@serenity-is/corelib / notifyError
Function: notifyError()
notifyError(
message,title?,options?):void
Defined in: src/base/notify.ts:72
Shows an error toast notification.
Parameters
message
Main content of the toast. Accepts a plain string or RenderableContent (DOM nodes/fragments are handled by the underlying toastr renderer).
title?
Optional title/header displayed above the message.
options?
Per-call toastr overrides merged over defaultNotifyOptions. Use to customize timeout, position, or escapeHtml for this toast only.
Returns
void
Example
notifyError("Failed to save record.", "Error");