Skip to content

ClientErrors

const ClientErrors: object

Defined in: packages/client/src/errors.ts:20

Factory functions for Client-related errors.

readonly alreadyStarted: () => ProcwireClientError

Client already started

ProcwireClientError

readonly cannotAddEventAfterStart: () => ProcwireClientError

Cannot add events after start

ProcwireClientError

readonly cannotAddHandlerAfterStart: () => ProcwireClientError

Cannot add handlers after start

ProcwireClientError

readonly notConnected: () => ProcwireClientError

Client not connected

ProcwireClientError

readonly responseAlreadySent: () => ProcwireClientError

Response already sent

ProcwireClientError

readonly unknownEvent: (eventName) => ProcwireClientError

Unknown event name

string

ProcwireClientError