Exception: Build::Graph::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.



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

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.



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

def command
  @command
end

#statusObject (readonly)

Returns the value of attribute status.



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

def status
  @status
end