Skip to content

ModuleErrors

const ModuleErrors: object

Defined in: packages/core/src/errors.ts:28

Factory functions for Module-related errors.

readonly disconnected: () => ProcwireError

Module disconnected while requests were pending

ProcwireError

readonly executableNotConfigured: (name) => ProcwireError

Executable not configured before spawn

string

ProcwireError

readonly methodNotInSchema: (method) => ProcwireError

Method not in child schema

string

ProcwireError

readonly methodNotRegistered: (method) => ProcwireError

Method not registered by child

string

ProcwireError

readonly methodNotStream: (method, response) => ProcwireError

Method does not return stream but stream() was called

string

string

ProcwireError

readonly methodReturnsStream: (method) => ProcwireError

Method returns stream but send() was called

string

ProcwireError

readonly noMethodsRegistered: (name) => ProcwireError

No methods registered before spawn

string

ProcwireError

readonly notReady: (name, state) => ProcwireError

Module is not ready for operations

string

string

ProcwireError

readonly remoteError: (errorData) => ProcwireError

Remote error from child

unknown

ProcwireError

readonly timeout: (method) => ProcwireError

Request timeout

string

ProcwireError

readonly unknownEvent: (eventName) => ProcwireError

Unknown event name

string

ProcwireError

readonly unknownMethod: (method) => ProcwireError

Unknown method name

string

ProcwireError