File

src/ui/error-handler/smart-error-handler.service.ts

Index

Properties
Methods

Constructor

constructor(smartWindowService: SmartWindowService, http: SmartHttpService, smartConfig: SmartConfig, injector: Injector, smartMessageService: SmartMessageService, overlayService: SmartOverlayService, logger: SmartLoggerService)
Parameters :
Name Type Optional
smartWindowService SmartWindowService No
http SmartHttpService No
smartConfig SmartConfig No
injector Injector No
smartMessageService SmartMessageService No
overlayService SmartOverlayService No
logger SmartLoggerService No

Methods

Public Async handleError
handleError(err: any)

Handles an error by checking its type and delegating to the appropriate handler. If an error is currently being displayed, the new error is queued for later processing.

Parameters :
Name Type Optional Description
err any No
  • The error to handle
Returns : Promise<WindowRef>

A promise that resolves to the error dialog window reference

Properties

errorHandled
Type : EventEmitter<any>
Default value : new EventEmitter<any>()

results matching ""

    No results matching ""