src/controllers/adb-controller/ADBBaseController.ts
import * as vscode from 'vscode'
import { ExtController } from '../../infra/extension/ExtensionController'
import { ADBInterfaceException } from '../../domain/adb-wrapper'
export class ADBBaseController extends ExtController {
async genericErrorReturn(e: Error) {
if (e instanceof ADBInterfaceException) {
vscode.window.showWarningMessage(e.message)
} else {
vscode.window.showErrorMessage('Error:' + e.message)
}
}
}