Class: AMQPError
An error, can be both AMQP level errors or socket errors
Extends
Error
Constructors
Constructor
ts
new AMQPError(message: string, connection: AMQPBaseClient): AMQPError;
Parameters
Parameter | Type | Description |
---|---|---|
message | string | Error description |
connection | AMQPBaseClient | The connection the error was raised on |
Returns
AMQPError
Overrides
ts
Error.constructor;
Properties
Property | Modifier | Type | Description | Inherited from |
---|---|---|---|---|
cause? | public | unknown | - | Error.cause |
connection | public | AMQPBaseClient | The connection the error was raised on | - |
message | public | string | - | Error.message |
name | public | string | - | Error.name |
stack? | public | string | - | Error.stack |
prepareStackTrace? | static | (err : Error , stackTraces : CallSite []) => any | Optional override for formatting stack traces See https://v8.dev/docs/stack-trace-api#customizing-stack-traces | Error.prepareStackTrace |
stackTraceLimit | static | number | - | Error.stackTraceLimit |
Methods
captureStackTrace()
ts
static captureStackTrace(targetObject: object, constructorOpt?: Function): void;
Create .stack property on a target object
Parameters
Parameter | Type |
---|---|
targetObject | object |
constructorOpt ? | Function |
Returns
void
Inherited from
ts
Error.captureStackTrace;