{"version":3,"sources":["api/base/api-base-with-standard-error-handling.ts"],"names":["ApiBase","checkStandardApiError","ApiBaseWithStandardErrorHandling","constructor","basePath","super","checkError","response","this","reportError","error"],"mappings":"OAASA,OAA8B,KAAf,uBACfC,qBAAkD,KAArB,4BAGhBC,yCAAyCF,QAC3DG,YAAYC,GACRC,MAAMD,CAAQ,CAClB,CAImBE,WAAWC,GAC1B,OAAON,sBAAsBM,EAAU,CAAA,EAAM,GAAWC,KAAKC,YAAYC,CAAK,CAAC,CACnF,C,QATkBR,gC","file":"api-base-with-standard-error-handling.js","sourcesContent":["import { ApiBase } from \"./api-base.js\";\r\nimport { checkStandardApiError } from \"./error-handling.js\";\r\nimport { IStandardApiError } from \"./i-standard-api-error.js\";\r\n\r\nexport abstract class ApiBaseWithStandardErrorHandling extends ApiBase {\r\n constructor(basePath: string) {\r\n super(basePath);\r\n }\r\n\r\n protected abstract reportError(error: IStandardApiError): void;\r\n\r\n protected override checkError(response: Response): Promise {\r\n return checkStandardApiError(response, true, (error) => this.reportError(error));\r\n }\r\n}\r\n"]}