Cloud Pub/Sub v1 API - Class AcknowledgementException (3.3.0)

public sealed class AcknowledgementException : Exception, ISerializable

Reference documentation and code samples for the Cloud Pub/Sub v1 API class AcknowledgementException.

Represents an exception while calling the Acknowledge or ModifyAckDeadline RPC fails with a permanent error.

Inheritance

Object > Exception > AcknowledgementException

Implements

ISerializable

Namespace

Google.Cloud.PubSub.V1

Assembly

Google.Cloud.PubSub.V1.dll

Constructors

AcknowledgementException(AcknowledgementStatus, String)

public AcknowledgementException(AcknowledgementStatus status, string messageId)

Initializes a new instance of the AcknowledgementException class.

Parameters
NameDescription
statusAcknowledgementStatus

The AcknowledgementStatus for the exception.

messageIdString

The message ID associated with this instance of exception.

Properties

MessageId

public string MessageId { get; }

Gets the message ID associated with this instance of AcknowledgementException.

Property Value
TypeDescription
String

Status

public AcknowledgementStatus Status { get; }

Gets the status of the acknowledgement.

Property Value
TypeDescription
AcknowledgementStatus