authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-02-26 00:19:59-08:00
committergravatar for jmarminge@gmail.comJulius Marminge <jmarminge@gmail.com> 2026-02-26 13:20:36-08:00
log1e75bd223c1d5348b1a73762a0ecfd1b62fcf830
tree57e2c86c8a81c0de07560b9101a26cc098ccdb7e
parent9fae3ee0e95b036388b597558ee58617b0035494

rm unserializable


1 files changed, 3 insertions(+), 5 deletions(-)

apps/server/src/orchestration/Errors.ts+3-5
...@@ -1,8 +1,6 @@...@@ -1,8 +1,6 @@
1import { SchemaIssue, Schema } from "effect";1import { SchemaIssue, Schema } from "effect";
22
3import type {3import type { ProjectionRepositoryError } from "../persistence/Errors.ts";
4 ProjectionRepositoryError,
5} from "../persistence/Errors.ts";
64
7export class OrchestrationCommandJsonParseError extends Schema.TaggedErrorClass<OrchestrationCommandJsonParseError>()(5export class OrchestrationCommandJsonParseError extends Schema.TaggedErrorClass<OrchestrationCommandJsonParseError>()(
8 "OrchestrationCommandJsonParseError",6 "OrchestrationCommandJsonParseError",
...@@ -110,7 +108,7 @@ export function toProjectorDecodeError(eventType: string) {...@@ -110,7 +108,7 @@ export function toProjectorDecodeError(eventType: string) {
110108
111export function toOrchestrationJsonParseError(cause: unknown) {109export function toOrchestrationJsonParseError(cause: unknown) {
112 return new OrchestrationCommandJsonParseError({110 return new OrchestrationCommandJsonParseError({
113 detail: `Failed to parse orchestration command JSON: ${cause}`,111 detail: `Failed to parse orchestration command JSON`,
114 cause,112 cause,
115 });113 });
116}114}
...@@ -119,7 +117,7 @@ export function toListenerCallbackError(listener: "read-model" | "domain-event")...@@ -119,7 +117,7 @@ export function toListenerCallbackError(listener: "read-model" | "domain-event")
119 return (cause: unknown): OrchestrationListenerCallbackError =>117 return (cause: unknown): OrchestrationListenerCallbackError =>
120 new OrchestrationListenerCallbackError({118 new OrchestrationListenerCallbackError({
121 listener,119 listener,
122 detail: `Failed to invoke orchestration ${listener} listener: ${cause}`,120 detail: `Failed to invoke orchestration ${listener} listener`,
123 cause,121 cause,
124 });122 });
125}123}