File

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

Description

A service used for handling errors by displaying them within a Smart Dialog, while fetching necessary message strings from the SCL Backend.

Example

Index

Properties
Methods

Constructor

constructor(dialogService: SmartDialogService, http: SmartHttpService, smartConfig: SmartConfig, serviceAdapter: SmartServiceAdapter)
Parameters :
Name Type Optional
dialogService SmartDialogService No
http SmartHttpService No
smartConfig SmartConfig No
serviceAdapter SmartServiceAdapter No

Methods

Public handleError
handleError(err: any)

Handles the given error by fetching any necessary messages from the backend and displaying the error and stacktrace in a dialog.

Parameters :
Name Type Optional
err any No
Returns : void

Properties

errorHandled
Type : EventEmitter<any>
Default value : new EventEmitter<any>()
Static INSTANCE
Type : SmartErrorHandlerService
Default value : {} as SmartErrorHandlerService

result-matching ""

    No results matching ""