{"version":3,"sources":["api/base/api-base-with-extended-error-handling.ts"],"names":["ApiBase","checkExtendedApiError","ApiBaseWithExtendedErrorHandling","constructor","basePath","super","checkError","response","this","reportError","error"],"mappings":"OAASA,YAAe,uBACfC,0BAA6B,4BAGhBC,yCAAyCF,QAC3DG,YAAYC,GACRC,MAAMD,GAKAE,WAAWC,GACjB,OAAON,sBAAsBM,GAAU,EAAM,GAAWC,KAAKC,YAAYC,YAR3DR","file":"api-base-with-extended-error-handling.js","sourcesContent":["import { ApiBase } from \"./api-base.js\";\nimport { checkExtendedApiError } from \"./error-handling.js\";\nimport { IExtendedApiError } from \"./i-extended-api-error.js\";\n\nexport abstract class ApiBaseWithExtendedErrorHandling extends ApiBase {\n constructor(basePath: string) {\n super(basePath);\n }\n\n protected abstract reportError(error: IExtendedApiError): void;\n\n protected checkError(response: Response): Promise {\n return checkExtendedApiError(response, true, (error) => this.reportError(error));\n }\n}\n"]}