monitor controller -> ts

This commit is contained in:
Alex Holliday committed 2026-01-09 14:49:44 -08:00
1 parent 8409f08a2d
commit a9ce980d03
7 files changed
+535 -583

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
export interface AppErrorConfig {
message: string;
status?: number;
service?: string | null;
method?: string | null;
details?: any;
}
export class AppError extends Error {
private status: number;
private service: string | null;
private method: string | null;
private details: any;
constructor({ message, status = 500, service = null, method = null, details = null }: AppErrorConfig) {
super(message);
this.status = status;
this.service = service;
this.method = method;
this.details = details;
Error.captureStackTrace(this, this.constructor);
}
}