Exception: Build::CommandFailure

Inherits:
TransientError show all
Defined in:
lib/build/graph/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command, status) ⇒ CommandFailure

Returns a new instance of CommandFailure.



26
27
28
29
30
31
# File 'lib/build/graph/error.rb', line 26

def initialize(command, status)
  super "Command #{command.inspect} failed with exit status #{status}!"

  @command = command
  @status = status
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



33
34
35
# File 'lib/build/graph/error.rb', line 33

def command
  @command
end

#statusObject (readonly)

Returns the value of attribute status.



34
35
36
# File 'lib/build/graph/error.rb', line 34

def status
  @status
end