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.

@!attribute [r] ordering_key

@return [String] The ordering key that is in a failed state.

Attributes

ordering_key[R]

Public Class Methods

new(ordering_key) click to toggle source
Calls superclass method
# File lib/google/cloud/pubsub/errors.rb, line 75
def initialize ordering_key
  @ordering_key = ordering_key

  super "Can't publish message using #{ordering_key}."
end