ModuleErrors
constModuleErrors:object
Defined in: packages/core/src/errors.ts:28
Factory functions for Module-related errors.
Type Declaration
Section titled “Type Declaration”disconnected()
Section titled “disconnected()”
readonlydisconnected: () =>ProcwireError
Module disconnected while requests were pending
Returns
Section titled “Returns”executableNotConfigured()
Section titled “executableNotConfigured()”
readonlyexecutableNotConfigured: (name) =>ProcwireError
Executable not configured before spawn
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”methodNotInSchema()
Section titled “methodNotInSchema()”
readonlymethodNotInSchema: (method) =>ProcwireError
Method not in child schema
Parameters
Section titled “Parameters”method
Section titled “method”string
Returns
Section titled “Returns”methodNotRegistered()
Section titled “methodNotRegistered()”
readonlymethodNotRegistered: (method) =>ProcwireError
Method not registered by child
Parameters
Section titled “Parameters”method
Section titled “method”string
Returns
Section titled “Returns”methodNotStream()
Section titled “methodNotStream()”
readonlymethodNotStream: (method,response) =>ProcwireError
Method does not return stream but stream() was called
Parameters
Section titled “Parameters”method
Section titled “method”string
response
Section titled “response”string
Returns
Section titled “Returns”methodReturnsStream()
Section titled “methodReturnsStream()”
readonlymethodReturnsStream: (method) =>ProcwireError
Method returns stream but send() was called
Parameters
Section titled “Parameters”method
Section titled “method”string
Returns
Section titled “Returns”noMethodsRegistered()
Section titled “noMethodsRegistered()”
readonlynoMethodsRegistered: (name) =>ProcwireError
No methods registered before spawn
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”notReady()
Section titled “notReady()”
readonlynotReady: (name,state) =>ProcwireError
Module is not ready for operations
Parameters
Section titled “Parameters”string
string
Returns
Section titled “Returns”remoteError()
Section titled “remoteError()”
readonlyremoteError: (errorData) =>ProcwireError
Remote error from child
Parameters
Section titled “Parameters”errorData
Section titled “errorData”unknown
Returns
Section titled “Returns”timeout()
Section titled “timeout()”
readonlytimeout: (method) =>ProcwireError
Request timeout
Parameters
Section titled “Parameters”method
Section titled “method”string
Returns
Section titled “Returns”unknownEvent()
Section titled “unknownEvent()”
readonlyunknownEvent: (eventName) =>ProcwireError
Unknown event name
Parameters
Section titled “Parameters”eventName
Section titled “eventName”string
Returns
Section titled “Returns”unknownMethod()
Section titled “unknownMethod()”
readonlyunknownMethod: (method) =>ProcwireError
Unknown method name
Parameters
Section titled “Parameters”method
Section titled “method”string