first commit

This commit is contained in:
2026-07-16 20:48:43 -03:00
commit 5696cee264
1111 changed files with 322270 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
export interface IServerError {
readonly code: number;
readonly desc: string;
}
export class ApiValidationError implements IServerError {
readonly code: number;
readonly desc: string;
constructor(code: number, desc: string) {
this.code = code;
this.desc = desc;
}
}
export class ApiError extends ApiValidationError {
constructor(code: number, desc: string) {
super(code, desc);
}
format = (): string => {
return `Ha ocurrido un error: ${this.desc}`;
};
}