feat(frontend): LearningObjectService en LearningPathService geïmplementeerd.
This commit is contained in:
parent
8b0fc4263f
commit
3c3fddb7d0
24 changed files with 375 additions and 84 deletions
10
frontend/src/services/api-client/api-exceptions.d.ts
vendored
Normal file
10
frontend/src/services/api-client/api-exceptions.d.ts
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
import type {AxiosResponse} from "axios";
|
||||
|
||||
export class HttpErrorStatusException extends Error {
|
||||
public readonly statusCode: number;
|
||||
|
||||
constructor(response: AxiosResponse<any, any>) {
|
||||
super(`${response.statusText} (${response.status})`);
|
||||
this.statusCode = response.status;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue