Exception: EasyCommand::CommandError

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

Direct Known Subclasses

ExitError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, code = nil) ⇒ CommandError

Returns a new instance of CommandError.



20
21
22
23
# File 'lib/easy_command.rb', line 20

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

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



18
19
20
# File 'lib/easy_command.rb', line 18

def code
  @code
end