diff --git a/frontend/src/exception/http-error-response-exception.ts b/frontend/src/exception/http-error-response-exception.ts new file mode 100644 index 00000000..4999b35d --- /dev/null +++ b/frontend/src/exception/http-error-response-exception.ts @@ -0,0 +1,7 @@ +import type {AxiosResponse} from "axios"; + +export class HttpErrorResponseException extends Error { + constructor(public response: AxiosResponse) { + super(response.statusText); + } +}