Exception: Kura::ApiError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reason, message) ⇒ ApiError

Returns a new instance of ApiError.



8
9
10
11
# File 'lib/kura.rb', line 8

def initialize(reason, message)
  @reason = reason
  super(message)
end

Instance Attribute Details

#reasonObject (readonly)

Returns the value of attribute reason.



12
13
14
# File 'lib/kura.rb', line 12

def reason
  @reason
end