IMQRPCError interface

Failure descriptor for a remote call.

Produced by a service when a method throws, and also before dispatch when the method does not exist, is not exposed, or was called with the wrong number of arguments. A client additionally synthesizes one locally on call timeout.

Signature:

export interface IMQRPCError extends JsonObject 

Extends: JsonObject

Remarks

A rejected client call rejects with this object as-is — it is not an Error instance, so err instanceof Error is false, err.stack describes the remote process rather than the caller's frames, and message is a plain property rather than an Error message.

Properties

Property

Modifiers

Type

Description

args

string

The call's arguments serialized as a pretty-printed JSON string, not an array — parse it before use.

code

string

Machine-readable failure code.

message

string

Human-readable failure description.

method

string

Bare name of the method the call targeted, unqualified by service name. Empty string rather than absent when unknown.

original?

any

(Optional) The error the service method threw, as a JSON string — not an object, despite the any type.

stack

string

Stack trace as a string, from the service process. Empty string rather than absent when unavailable.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.