@serenity-is/corelib / ErrorHandling / showServiceError

Function: showServiceError()

showServiceError(error, errorInfo?, errorMode?): void

Defined in: src/base/errorhandling.tsx:14

Shows a service error as an alert dialog / notification. If the error is null, has no message or code, it shows a generic error message.

Parameters

error

ServiceError

errorInfo?

RequestErrorInfo

errorMode?

"alert" | "notification"

Returns

void