@serenity-is/corelib / ErrorHandling / runtimeErrorHandler

Function: runtimeErrorHandler()

runtimeErrorHandler(message, filename?, lineno?, colno?, error?): void

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

Runtime error handler that shows a runtime error as a notification by default only in development mode (@see isDevelopmentMode) This function is assigned as window.onerror handler in ScriptInit.ts for Serenity applications so that developers can notice an error without having to check the browser console.

Parameters

message

string

filename?

string

lineno?

number

colno?

number

error?

Error

Returns

void