mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-06-07 20:56:32 +00:00
16 lines
491 B
TypeScript
16 lines
491 B
TypeScript
import { injectable } from 'inversify';
|
|
import { Emitter } from '@theia/core/lib/common/event';
|
|
import { MonitorServiceClient, MonitorError } from '../../common/protocol/monitor-service';
|
|
|
|
@injectable()
|
|
export class MonitorServiceClientImpl implements MonitorServiceClient {
|
|
|
|
protected readonly onErrorEmitter = new Emitter<MonitorError>();
|
|
readonly onError = this.onErrorEmitter.event;
|
|
|
|
notifyError(error: MonitorError): void {
|
|
this.onErrorEmitter.fire(error);
|
|
}
|
|
|
|
}
|