This commit is contained in:
2026-10-21 19:32:02 -04:00
commit b74d278c8e
96 changed files with 54476 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
/** Error intended to be returned by the HTTP API. */
export class ServiceError extends Error {
constructor(code, message, status = 500, details = undefined) {
super(message);
this.name = 'ServiceError';
this.code = code;
this.status = status;
if (details !== undefined) this.details = details;
}
}