Exception: OMQ::QoS::NackError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/omq/qos/error_codes.rb

Overview

Raised to a QoS 3 REQ sender's fiber when the REP peer returns a NACK. Carries the wire-level code + message so the caller can inspect them.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, message) ⇒ NackError

Returns a new instance of NackError.



90
91
92
93
# File 'lib/omq/qos/error_codes.rb', line 90

def initialize(code, message)
  super(message)
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



87
88
89
# File 'lib/omq/qos/error_codes.rb', line 87

def code
  @code
end