mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
move ApiResponseError to separate file
This commit is contained in:
@@ -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
|
||||
|
||||
6
src/loaders/ApiResponseError.ts
Normal file
6
src/loaders/ApiResponseError.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export class ApiResponseError extends Error {
|
||||
constructor(message: string) {
|
||||
super(message);
|
||||
this.name = "ApiResponseError";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user