feat: auto committed

This commit is contained in:
SpecialX
2026-07-10 18:57:57 +08:00
parent 5e0e20b1ce
commit 9fae2b0e78
74 changed files with 5362 additions and 304 deletions

View File

@@ -5,7 +5,8 @@ export type ErrorType =
| 'conflict'
| 'business'
| 'database'
| 'internal';
| 'internal'
| 'neo4j_unavailable';
export interface ErrorDetails {
[key: string]: unknown;
@@ -94,3 +95,11 @@ export class InternalError extends ApplicationError {
super(message, 'CONTENT_INTERNAL_ERROR', details);
}
}
export class Neo4jUnavailableError extends ApplicationError {
readonly type = 'neo4j_unavailable' as const;
readonly statusCode = 503;
constructor(message: string, details?: ErrorDetails) {
super(message, 'CONTENT_NEO4J_UNAVAILABLE', details);
}
}