Cloud Pub/Sub v1 API - Class AcknowledgementException (3.15.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
Name Description
status AcknowledgementStatus

The AcknowledgementStatus for the exception.

messageId string

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
Type Description
string

Status

public AcknowledgementStatus Status { get; }

Gets the status of the acknowledgement.

Property Value
Type Description
AcknowledgementStatus