Exception: EventHub::BaseException
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- EventHub::BaseException
- Defined in:
- lib/eventhub/base_exception.rb
Overview
BaseException class
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(message = nil, code = EventHub::STATUS_DEADLETTER) ⇒ BaseException
constructor
A new instance of BaseException.
Constructor Details
#initialize(message = nil, code = EventHub::STATUS_DEADLETTER) ⇒ BaseException
Returns a new instance of BaseException.
6 7 8 9 10 |
# File 'lib/eventhub/base_exception.rb', line 6 def initialize( = nil, code = EventHub::STATUS_DEADLETTER) @message = @code = code super(@message) end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
5 6 7 |
# File 'lib/eventhub/base_exception.rb', line 5 def code @code end |
#message ⇒ Object
Returns the value of attribute message.
5 6 7 |
# File 'lib/eventhub/base_exception.rb', line 5 def @message end |