Exception: Tumugi::TumugiError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/tumugi/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, reason = nil) ⇒ TumugiError

Returns a new instance of TumugiError.



5
6
7
8
# File 'lib/tumugi/error.rb', line 5

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

Instance Attribute Details

#reasonObject (readonly)

Returns the value of attribute reason.



3
4
5
# File 'lib/tumugi/error.rb', line 3

def reason
  @reason
end