Exception: Loopless::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject (readonly)

Returns the value of attribute code.



4
5
6
# File 'lib/loopless.rb', line 4

def code
  @code
end