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

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