Interface: IErrorService

Error Service, used to display full screen errors on an HTMLElement

Methods

cleanupFullScreenError()

cleanupFullScreenError(parentElement?): void

Removes a full screen error.

Parameters

parentElement?: HTMLElement

The Parent Element of the error screen to remove.

Returns

void


cleanupFullScreenErrorById()

cleanupFullScreenErrorById(parentElementId?): void

Removes a full screen error.

Parameters

parentElementId?: string

The Parent Element Id of the error screen to remove.

Returns

void


cleanupHangingFullScreenErrors()

cleanupHangingFullScreenErrors(): void

Removes all full screen errors without parent elements.

Returns

void


displayFullScreenError()

displayFullScreenError(message, parentElement?, retryHandler?, ...rest?): HTMLElement

Displays a full screen error filling out the whole width and height of an div.

Parameters

message: string

Sets the error message of the error screen. Supports inclusion of HTML.

parentElement?: HTMLElement

Sets the Parent Element of the error screen.

retryHandler?

• ...rest?: any[]

Returns

HTMLElement

The newly created full screen error HTMLElement


displayFullScreenErrorById()

displayFullScreenErrorById(message, parentElementId?, retryHandler?, ...rest?): HTMLElement

Displays a full screen error filling out the whole width and height of an div.

Parameters

message: string

Sets the error message of the error screen. Supports inclusion of HTML.

parentElementId?: string

Sets the Parent Element Id of the error screen.

retryHandler?

• ...rest?: any[]

Returns

HTMLElement

The newly created full screen error HTMLElement