feat(backend): Exception voor HTTP-foutcodes
This commit is contained in:
parent
5cfabb3518
commit
8e56d68793
1 changed files with 7 additions and 0 deletions
7
frontend/src/exception/http-error-response-exception.ts
Normal file
7
frontend/src/exception/http-error-response-exception.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
import type {AxiosResponse} from "axios";
|
||||
|
||||
export class HttpErrorResponseException extends Error {
|
||||
constructor(public response: AxiosResponse<unknown, unknown>) {
|
||||
super(response.statusText);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue