Exception: EventHub::BaseException

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/eventhub/base_exception.rb

Overview

BaseException class

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message = nil, code = EventHub::STATUS_DEADLETTER)
  @message = message
  @code = code
  super(@message)
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



5
6
7
# File 'lib/eventhub/base_exception.rb', line 5

def code
  @code
end

#messageObject

Returns the value of attribute message.



5
6
7
# File 'lib/eventhub/base_exception.rb', line 5

def message
  @message
end