Exception: Loopless::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Loopless::Error
- Defined in:
- lib/loopless.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(code) ⇒ Error
Returns a new instance of Error.
5 6 7 8 |
# File 'lib/loopless.rb', line 5 def initialize(code) @code = code super "Loopless failed with errorcode #{code}" end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
4 5 6 |
# File 'lib/loopless.rb', line 4 def code @code end |