Exception: DmmUtil::MeterError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- DmmUtil::MeterError
- Defined in:
- lib/dmm_util/meter.rb
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(msg, status = nil) ⇒ MeterError
constructor
A new instance of MeterError.
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
#status ⇒ Object (readonly)
Returns the value of attribute status.
32 33 34 |
# File 'lib/dmm_util/meter.rb', line 32 def status @status end |