Exception: ErrorReporter
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- ErrorReporter
- Defined in:
- lib/bunny-pub-sub/subscriber.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(message, status = 400) ⇒ ErrorReporter
constructor
A new instance of ErrorReporter.
Constructor Details
#initialize(message, status = 400) ⇒ ErrorReporter
Returns a new instance of ErrorReporter.
20 21 22 23 24 25 26 27 28 |
# File 'lib/bunny-pub-sub/subscriber.rb', line 20 def initialize(, status = 400) unless @@publisher.nil? @@publisher.connect_publisher @@publisher. @@publisher.disconnect_publisher end @status = status super() end |
Instance Attribute Details
#status ⇒ Object (readonly)
Returns the value of attribute status.
10 11 12 |
# File 'lib/bunny-pub-sub/subscriber.rb', line 10 def status @status end |
Class Method Details
.publisher ⇒ Object
16 17 18 |
# File 'lib/bunny-pub-sub/subscriber.rb', line 16 def self.publisher @@publisher end |
.publisher=(publisher) ⇒ Object
12 13 14 |
# File 'lib/bunny-pub-sub/subscriber.rb', line 12 def self.publisher=(publisher) @@publisher = publisher end |