Exception: LocalBus::Subscriber::Error
- Inherits:
-
StandardError
- Object
- StandardError
- LocalBus::Subscriber::Error
- Defined in:
- lib/local_bus/subscriber.rb
Overview
Custom error class for Subscriber errors
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Underlying cause of the error.
Instance Method Summary collapse
-
#initialize(message, cause:) ⇒ Error
constructor
Constructor.
Constructor Details
#initialize(message, cause:) ⇒ Error
Constructor
13 14 15 16 |
# File 'lib/local_bus/subscriber.rb', line 13 def initialize(, cause:) super() @cause = cause end |
Instance Attribute Details
#cause ⇒ Object (readonly)
Underlying cause of the error
20 21 22 |
# File 'lib/local_bus/subscriber.rb', line 20 def cause @cause end |