ClientErrors
constClientErrors:object
Defined in: packages/client/src/errors.ts:20
Factory functions for Client-related errors.
Type Declaration
Section titled “Type Declaration”alreadyStarted()
Section titled “alreadyStarted()”
readonlyalreadyStarted: () =>ProcwireClientError
Client already started
Returns
Section titled “Returns”cannotAddEventAfterStart()
Section titled “cannotAddEventAfterStart()”
readonlycannotAddEventAfterStart: () =>ProcwireClientError
Cannot add events after start
Returns
Section titled “Returns”cannotAddHandlerAfterStart()
Section titled “cannotAddHandlerAfterStart()”
readonlycannotAddHandlerAfterStart: () =>ProcwireClientError
Cannot add handlers after start
Returns
Section titled “Returns”notConnected()
Section titled “notConnected()”
readonlynotConnected: () =>ProcwireClientError
Client not connected
Returns
Section titled “Returns”responseAlreadySent()
Section titled “responseAlreadySent()”
readonlyresponseAlreadySent: () =>ProcwireClientError
Response already sent
Returns
Section titled “Returns”unknownEvent()
Section titled “unknownEvent()”
readonlyunknownEvent: (eventName) =>ProcwireClientError
Unknown event name
Parameters
Section titled “Parameters”eventName
Section titled “eventName”string