{"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,OAA8B,KAAf,uBACfC,qBAAkD,KAArB,4BAGhBC,yCAAyCF,QAC3DG,YAAYC,GACRC,MAAMD,CAAQ,CAClB,CAIUE,WAAWC,GACjB,OAAON,sBAAsBM,EAAU,CAAA,EAAM,GAAWC,KAAKC,YAAYC,CAAK,CAAC,CACnF,C,QATkBR,gC","file":"api-base-with-extended-error-handling.js","sourcesContent":["import { ApiBase } from \"./api-base.js\";\r\nimport { checkExtendedApiError } from \"./error-handling.js\";\r\nimport { IExtendedApiError } from \"./i-extended-api-error.js\";\r\n\r\nexport abstract class ApiBaseWithExtendedErrorHandling extends ApiBase {\r\n constructor(basePath: string) {\r\n super(basePath);\r\n }\r\n\r\n protected abstract reportError(error: IExtendedApiError): void;\r\n\r\n protected checkError(response: Response): Promise {\r\n return checkExtendedApiError(response, true, (error) => this.reportError(error));\r\n }\r\n}\r\n"]}