Cloud Pub/Sub API - Class Google::Cloud::PubSub::OrderingKeyError (v2.12.1)

Reference documentation and code samples for the Cloud Pub/Sub API class Google::Cloud::PubSub::OrderingKeyError.

Indicates that messages using the #ordering_key are not being published due to error. Future calls to Topic#publish_async with the #ordering_key will fail with this error.

To allow future messages with the #ordering_key to be published, the #ordering_key must be passed to Topic#resume_publish.

If this error is retrieved from PublishResult#error, inspect cause for the error raised while publishing.

Inherits

  • Google::Cloud::Error

Methods

#initialize

def initialize(ordering_key) -> OrderingKeyError
Returns

#ordering_key

def ordering_key() -> String
Returns
  • (String) — The ordering key that is in a failed state.