wip: Construct API
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { APIErrorEnum } from "./APIErrorEnum";
|
||||
|
||||
export class APIServerError extends Error {
|
||||
constructor(error) {
|
||||
super(error.message);
|
||||
this.thrownError = error;
|
||||
this.errorCode = APIErrorEnum.Server;
|
||||
this.name = "APIServerError";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user