Class: Google::Cloud::PubSub::OrderedMessageDeliveryError

Inherits:
Error
  • Object
show all
Defined in:
lib/google/cloud/pubsub/errors.rb

Overview

Indicates that the Subscriber for a Subscription with message ordering enabled has observed that a message has been delivered out of order.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ordered_message) ⇒ OrderedMessageDeliveryError

Returns a new instance of OrderedMessageDeliveryError.



51
52
53
54
55
# File 'lib/google/cloud/pubsub/errors.rb', line 51

def initialize ordered_message
  @ordered_message = ordered_message

  super "Ordered message delivered out of order."
end

Instance Attribute Details

#ordered_messageObject (readonly)

Returns the value of attribute ordered_message.



49
50
51
# File 'lib/google/cloud/pubsub/errors.rb', line 49

def ordered_message
  @ordered_message
end