move ApiResponseError to separate file

This commit is contained in:
2025-04-10 16:44:57 -07:00
parent 3d6dc1e7b6
commit 263607fc69
3 changed files with 9 additions and 8 deletions

View File

@@ -2,13 +2,7 @@ import { ShuttleGetterSetterRepository } from "../repositories/ShuttleGetterSett
import { IEta, IRoute, IShuttle, IStop } from "../entities/ShuttleRepositoryEntities";
import { ShuttleRepositoryLoader } from "./ShuttleRepositoryLoader";
import { IEntityWithId } from "../entities/SharedEntities";
export class ApiResponseError extends Error {
constructor(message: string) {
super(message);
this.name = "ApiResponseError";
}
}
import { ApiResponseError } from "./ApiResponseError";
/**
* Class which can load data into a repository from the

View File

@@ -0,0 +1,6 @@
export class ApiResponseError extends Error {
constructor(message: string) {
super(message);
this.name = "ApiResponseError";
}
}