# IMQRPCError interface · @imqueue/rpc

Source: https://imqueue.org/api/rpc/latest/rpc.imqrpcerror/
Published: 2026-08-04
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/rpc 3.5.3 — generated reference, not hand-written

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:**

```typescript
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](https://imqueue.org/api/rpc/latest/rpc.imqrpcerror.args/) |  | string | The call's arguments serialized as a pretty-printed JSON string, not an array — parse it before use. |
| [code](https://imqueue.org/api/rpc/latest/rpc.imqrpcerror.code/) |  | string | Machine-readable failure code. |
| [message](https://imqueue.org/api/rpc/latest/rpc.imqrpcerror.message/) |  | string | Human-readable failure description. |
| [method](https://imqueue.org/api/rpc/latest/rpc.imqrpcerror.method/) |  | string | Bare name of the method the call targeted, unqualified by service name. Empty string rather than absent when unknown. |
| [original?](https://imqueue.org/api/rpc/latest/rpc.imqrpcerror.original/) |  | any | _(Optional)_ The error the service method threw, as a JSON string — not an object, despite the `any` type. |
| [stack](https://imqueue.org/api/rpc/latest/rpc.imqrpcerror.stack/) |  | string | Stack trace as a string, from the service process. Empty string rather than absent when unavailable. |

