You're viewing archived documentation for @imqueue/rpc v1.17.1. APIs may differ from the current release. View the latest version ↗

IMQError() function

Builds JSON representation of IMQ Error

Signature:

export declare function IMQError(code: string, message: string, stack: any, method: any, args: any, original?: any): IMQRPCError;

Parameters

Parameter

Type

Description

code

string

error code

message

string

error message

stack

any

error stack

method

any

IMQ service method called, which produced an error

args

any

IMQ service method call args passed

original

any

(Optional) Original error thrown (JSON'ified) if any {IMQRPCError}

Returns:

IMQRPCError