@serenity-is/corelib / handleScriptDataError

Function: handleScriptDataError()

handleScriptDataError(name, status?, statusText?, shouldThrow?): string

Defined in: src/base/scriptdata.ts:251

Shows a suitable error message for errors occured during loading of a dynamic script data.

Parameters

name

string

Name of the dynamic script

status?

number

HTTP status returned if available

statusText?

string

HTTP status text returned if available

shouldThrow?

boolean = true

Returns

string