import { ErrorHandler , Injectable } from '@angular/core' ; import { LogService } from 'uhk-common' ; @ Injectable ( ) export class ElectronErrorHandlerService implements ErrorHandler { constructor ( private logService ) { } handleError ( error ) { this . logService . error ( error ) ; } }