Exception: Promiscuous::Error::Subscriber
- Defined in:
- lib/promiscuous/error/subscriber.rb
Instance Attribute Summary collapse
-
#inner ⇒ Object
Returns the value of attribute inner.
-
#payload ⇒ Object
Returns the value of attribute payload.
Instance Method Summary collapse
-
#initialize(inner, options = {}) ⇒ Subscriber
constructor
A new instance of Subscriber.
- #message ⇒ Object (also: #to_s)
Constructor Details
#initialize(inner, options = {}) ⇒ Subscriber
Returns a new instance of Subscriber.
4 5 6 7 8 9 |
# File 'lib/promiscuous/error/subscriber.rb', line 4 def initialize(inner, ={}) super(nil) set_backtrace(inner.backtrace) self.inner = inner self.payload = [:payload] end |
Instance Attribute Details
#inner ⇒ Object
Returns the value of attribute inner.
2 3 4 |
# File 'lib/promiscuous/error/subscriber.rb', line 2 def inner @inner end |
#payload ⇒ Object
Returns the value of attribute payload.
2 3 4 |
# File 'lib/promiscuous/error/subscriber.rb', line 2 def payload @payload end |
Instance Method Details
#message ⇒ Object Also known as: to_s
11 12 13 |
# File 'lib/promiscuous/error/subscriber.rb', line 11 def "#{inner.class}: #{inner.} while processing #{payload}" end |