chore (frontend): move url in frontend

This commit is contained in:
MickaelK
2023-11-27 20:58:54 +11:00
parent def45d5ad5
commit dd6e91c493
151 changed files with 63 additions and 36 deletions

View File

@ -0,0 +1,35 @@
export class AjaxError extends Error {
constructor(message, err = null, code = "UNDEFINED_CODE") {
super(message);
this.name = this.constructor.name;
this.errCode = code;
this.errOrig = err;
}
code() {
return this.errCode;
}
err() {
return this.errOrig;
}
type() {
return "AjaxError";
}
}
export class ApplicationError extends Error {
constructor(message, debug) {
super(message);
this.debugMsg = debug;
}
type() {
return "ApplicationError";
}
debug() {
return this.debugMsg || "N/A";
}
}