feat: auto committed
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user