Exception: TinyCI::Subprocesses::SubprocessError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- TinyCI::Subprocesses::SubprocessError
- Defined in:
- lib/tinyci/subprocesses.rb
Overview
An error raised when any of the TinyCI::Subprocesses methods fail
Instance Attribute Summary collapse
-
#command ⇒ String
readonly
The command used to spawn the process.
-
#status ⇒ Integer
readonly
The return code of the process.
Instance Method Summary collapse
-
#initialize(label, command, status, message = "`#{label || command}` failed with status #{status.exitstatus}") ⇒ SubprocessError
constructor
A new instance of SubprocessError.
Constructor Details
#initialize(label, command, status, message = "`#{label || command}` failed with status #{status.exitstatus}") ⇒ SubprocessError
Returns a new instance of SubprocessError.
92 93 94 95 96 |
# File 'lib/tinyci/subprocesses.rb', line 92 def initialize(label, command, status, = "`#{label || command}` failed with status #{status.exitstatus}") @status = status @command = command super() end |
Instance Attribute Details
#command ⇒ String (readonly)
The command used to spawn the process
88 89 90 |
# File 'lib/tinyci/subprocesses.rb', line 88 def command @command end |
#status ⇒ Integer (readonly)
The return code of the process
88 89 90 |
# File 'lib/tinyci/subprocesses.rb', line 88 def status @status end |