import BaseService from '@/services/BaseService' ; export interface IErrorService { context ? : any ; } export default class ErrorService implements BaseService { context : any ; constructor ( { context = 'hoge' } ) { this . context = context ; } async handle ( error ) { console . log ( `error called in ${ this . context }` ) ; console . log ( error ) ; return ; } }