Skip to content

@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

RenderableContent

Main content of the toast. Accepts a plain string or RenderableContent (DOM nodes/fragments are handled by the underlying toastr renderer).

title?

RenderableContent

Optional title/header displayed above the message.

options?

ToastrOptions

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");