Exception: Build::Graph::CommandFailure
- Inherits:
-
TransientError
- Object
- StandardError
- TransientError
- Build::Graph::CommandFailure
- Defined in:
- lib/build/graph/error.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(command, status) ⇒ CommandFailure
constructor
A new instance of CommandFailure.
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
#command ⇒ Object (readonly)
Returns the value of attribute command.
34 35 36 |
# File 'lib/build/graph/error.rb', line 34 def command @command end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
35 36 37 |
# File 'lib/build/graph/error.rb', line 35 def status @status end |