fix(frontend): Linting errors/warnings opgelost
This commit is contained in:
parent
b2e6b33716
commit
4d98be78c1
26 changed files with 272 additions and 258 deletions
|
@ -1,22 +0,0 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
|
||||
export class NotFoundException extends Error {
|
||||
constructor(message: string) {
|
||||
super(message);
|
||||
}
|
||||
}
|
||||
|
||||
export class InvalidResponseException extends Error {
|
||||
constructor(message: string) {
|
||||
super(message);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue