Exception: DmmUtil::MeterError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, status = nil) ⇒ MeterError

Returns a new instance of MeterError.



33
34
35
36
# File 'lib/dmm_util/meter.rb', line 33

def initialize(msg, status = nil)
  super msg
  @status = status
end

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



32
33
34
# File 'lib/dmm_util/meter.rb', line 32

def status
  @status
end