Variant

notification-error

Errors that can occur when sending notifications

variant notification-error {
  io(stream-error),
  serialization(string),
  unexpected(string),
}

Cases

CasePayloadDescription
iostream-error

An I/O error occurred writing to the output stream

serializationstring

Failed to serialize the notification to JSON-RPC format

unexpectedstring

An unexpected error occurred