mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-01 09:29:38 +02:00
Use tagged errors for dispatch RPC
This commit is contained in:
parent
1d45307387
commit
39db6d8235
3 changed files with 25 additions and 4 deletions
|
|
@ -14,8 +14,7 @@ export class DispatchStreamChunk extends S.Class<DispatchStreamChunk>("DispatchS
|
|||
complete: S.Boolean,
|
||||
}) {}
|
||||
|
||||
export class DispatchError extends S.ErrorClass<DispatchError>("DispatchError")({
|
||||
_tag: S.tag("DispatchError"),
|
||||
export class DispatchError extends S.TaggedErrorClass<DispatchError>()("DispatchError", {
|
||||
message: S.String,
|
||||
}) {}
|
||||
|
||||
|
|
|
|||
|
|
@ -14,8 +14,7 @@ export class DispatchStreamChunk extends S.Class<DispatchStreamChunk>("DispatchS
|
|||
complete: S.Boolean,
|
||||
}) {}
|
||||
|
||||
export class DispatchError extends S.ErrorClass<DispatchError>("DispatchError")({
|
||||
_tag: S.tag("DispatchError"),
|
||||
export class DispatchError extends S.TaggedErrorClass<DispatchError>()("DispatchError", {
|
||||
message: S.String,
|
||||
}) {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue