src/ui/error-handler/smart-error-handler.service.ts
A service used for handling errors by displaying them within a Smart Dialog, while fetching necessary message strings from the SCL Backend.
Properties |
|
Methods |
|
constructor(dialogService: SmartDialogService, http: SmartHttpService, smartConfig: SmartConfig, serviceAdapter: SmartServiceAdapter)
|
|||||||||||||||
Parameters :
|
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 :
Returns :
void
|
errorHandled |
Type : EventEmitter<any>
|
Default value : new EventEmitter<any>()
|
Static INSTANCE |
Type : SmartErrorHandlerService
|
Default value : {} as SmartErrorHandlerService
|