Exception: Tetra::ExecutionFailed
- Inherits:
-
Exception
- Object
- Exception
- Tetra::ExecutionFailed
- Defined in:
- lib/tetra/facades/process_runner.rb
Overview
raised when a command returns a non-zero status
Instance Attribute Summary collapse
-
#commandline ⇒ Object
readonly
Returns the value of attribute commandline.
-
#err ⇒ Object
readonly
Returns the value of attribute err.
-
#out ⇒ Object
readonly
Returns the value of attribute out.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(commandline, status, out, err) ⇒ ExecutionFailed
constructor
A new instance of ExecutionFailed.
- #to_s ⇒ Object
Constructor Details
#initialize(commandline, status, out, err) ⇒ ExecutionFailed
72 73 74 75 76 77 |
# File 'lib/tetra/facades/process_runner.rb', line 72 def initialize(commandline, status, out, err) @commandline = commandline @status = status @out = out @err = err end |
Instance Attribute Details
#commandline ⇒ Object (readonly)
Returns the value of attribute commandline.
67 68 69 |
# File 'lib/tetra/facades/process_runner.rb', line 67 def commandline @commandline end |
#err ⇒ Object (readonly)
Returns the value of attribute err.
70 71 72 |
# File 'lib/tetra/facades/process_runner.rb', line 70 def err @err end |
#out ⇒ Object (readonly)
Returns the value of attribute out.
69 70 71 |
# File 'lib/tetra/facades/process_runner.rb', line 69 def out @out end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
68 69 70 |
# File 'lib/tetra/facades/process_runner.rb', line 68 def status @status end |
Instance Method Details
#to_s ⇒ Object
79 80 81 |
# File 'lib/tetra/facades/process_runner.rb', line 79 def to_s "\"#{@commandline}\" failed with status #{@status}\n#{out}\n#{err}" end |