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
- (OrderingKeyError) — a new instance of OrderingKeyError
#ordering_key
def ordering_key() -> String
- (String) — The ordering key that is in a failed state.