Exception: MachineGun::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/machine-gun.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, message) ⇒ Error

Returns a new instance of Error.



19
20
21
22
# File 'lib/machine-gun.rb', line 19

def initialize(code, message)
  super message
  @code = code
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



17
18
19
# File 'lib/machine-gun.rb', line 17

def code
  @code
end