Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/client / errors / GraphorinClientError
Class: GraphorinClientError
Defined in: packages/client/src/errors.ts:33
Base class for every error raised by @graphorin/client. Carries a stable GraphorinClientErrorKind discriminator and an optional cause chain.
Stable
Extends
Error
Extended by
ClientNotConnectedErrorTransportFailedErrorSubprotocolMismatchErrorAuthFailedErrorProtocolViolationErrorSubscriptionNotFoundErrorClientAbortedErrorInvalidServerFrameError
Constructors
Constructor
ts
new GraphorinClientError(
kind,
message,
options?): GraphorinClientError;Defined in: packages/client/src/errors.ts:36
Parameters
| Parameter | Type |
|---|---|
kind | GraphorinClientErrorKind |
message | string |
options | ErrorOptions |
Returns
GraphorinClientError
Overrides
ts
Error.constructorProperties
| Property | Modifier | Type | Inherited from | Defined in |
|---|---|---|---|---|
cause? | public | unknown | Error.cause | node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts:26 |
kind | readonly | GraphorinClientErrorKind | - | packages/client/src/errors.ts:34 |
message | public | string | Error.message | node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1077 |
name | public | string | Error.name | node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1076 |
stack? | public | string | Error.stack | node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1078 |