Class AckError (4.4.0)

Thrown when an error is detected in an ack/nack/modack call, when exactly-once delivery is enabled on the subscription. This will only be thrown for actual errors that can't be retried.

Inheritance

Error > AckError

Package

@google-cloud/pubsub

Constructors

(constructor)(errorCode, message)

constructor(errorCode: AckResponse, message?: string);

Constructs a new instance of the AckError class

Parameters
Name Description
errorCode AckResponse
message string

Properties

errorCode

errorCode: AckResponse;