Skip to content

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

ParameterTypeDescription
messagestringError description
connectionAMQPBaseClientThe connection the error was raised on

Returns

AMQPError

Overrides

ts
Error.constructor;

Properties

PropertyModifierTypeDescriptionInherited from
cause?publicunknown-Error.cause
connectionpublicAMQPBaseClientThe connection the error was raised on-
messagepublicstring-Error.message
namepublicstring-Error.name
stack?publicstring-Error.stack
prepareStackTrace?static(err: Error, stackTraces: CallSite[]) => anyOptional override for formatting stack traces See https://v8.dev/docs/stack-trace-api#customizing-stack-tracesError.prepareStackTrace
stackTraceLimitstaticnumber-Error.stackTraceLimit

Methods

captureStackTrace()

ts
static captureStackTrace(targetObject: object, constructorOpt?: Function): void;

Create .stack property on a target object

Parameters

ParameterType
targetObjectobject
constructorOpt?Function

Returns

void

Inherited from

ts
Error.captureStackTrace;