blob: 732cceee309827673387f26d5dfaa91892c0f8d0 [file] [log] [blame]
import {shouldImplement} from '../../../../common/commonUtils.js';
export default class BaseInfoHandler {
constructor() {
if (this.constructor == BaseInfoHandler) {
throw new Error('The base class cannot be instantiated.');
}
}
/**
* Should return a promise which resolves to the current info in a best-effort
* manner (if it can't retrieve the current info it is allowed to fail).
*/
async getCurrentInfo(_injectionDetails) {
shouldImplement('getCurrentInfo');
}
}