Remote / foldkit-remote-server
RemoteServerError
class · packages/remote-server/src/index.ts:131
class RemoteServerError extends Schema.TaggedError<RemoteServerError>()(
'RemoteServerError',
{
message: Schema.String,
cause: Schema.optional(Schema.Unknown),
told: Schema.optional(Schema.Literal(true)),
},
) {}A Source's failure. Its message and cause stay on this side: the server
reports them as a ServerDefect and answers "Internal error" with the id it
reported them under, so a driver's words, a thrown error's or a rule's
internals reach no caller. Only RemoteServer.tell makes one whose message
the caller reads.
In the guides
- Server responses and error hidingLearn / Errors and failures
- MutationsRemote / foldkit-remote-drizzle
- When the database failsRemote / foldkit-remote-drizzle
- PublishingCMS / foldkit-cms-drizzle