Exception: Tiamat::RunRubyError

Inherits:
Error
  • Object
show all
Defined in:
lib/tiamat/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command, status) ⇒ RunRubyError

Returns a new instance of RunRubyError.



16
17
18
19
20
# File 'lib/tiamat/error.rb', line 16

def initialize(command, status)
  @command, @status = command, status
  command_str = command.map { |a| "'#{a}'" }.join(", ")
  super("system(#{command_str}) failed with status #{@status}")
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



22
23
24
# File 'lib/tiamat/error.rb', line 22

def command
  @command
end

#statusObject (readonly)

Returns the value of attribute status.



22
23
24
# File 'lib/tiamat/error.rb', line 22

def status
  @status
end