Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/client / errors
errors
Typed error hierarchy surfaced by @graphorin/client. Every error class extends the JavaScript built-in Error and exposes a stable kind discriminator so consumers can pattern-match without relying on instanceof (which behaves badly across module-system boundaries when the package is dual-loaded).
Classes
| Class | Description |
|---|---|
| AuthFailedError | - |
| ClientAbortedError | - |
| ClientNotConnectedError | - |
| GraphorinClientError | Base class for every error raised by @graphorin/client. Carries a stable GraphorinClientErrorKind discriminator and an optional cause chain. |
| InvalidServerFrameError | - |
| ProtocolViolationError | - |
| SubprotocolMismatchError | - |
| SubscriptionNotFoundError | - |
| TransportFailedError | - |
Type Aliases
| Type Alias | Description |
|---|---|
| GraphorinClientErrorKind | Discriminator union of every error kind raised by the client. |