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: