Exception: AptControl::Exec::UnexpectedExitStatus
- Inherits:
-
StandardError
- Object
- StandardError
- AptControl::Exec::UnexpectedExitStatus
- Defined in:
- lib/apt_control/exec.rb
Instance Attribute Summary collapse
-
#actual ⇒ Object
(also: #exitstatus)
readonly
Returns the value of attribute actual.
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#expect ⇒ Object
readonly
Returns the value of attribute expect.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize(expected, actual, cmd, output, stdout, stderr) ⇒ UnexpectedExitStatus
constructor
A new instance of UnexpectedExitStatus.
Constructor Details
#initialize(expected, actual, cmd, output, stdout, stderr) ⇒ UnexpectedExitStatus
Returns a new instance of UnexpectedExitStatus.
9 10 11 12 13 14 15 16 |
# File 'lib/apt_control/exec.rb', line 9 def initialize(expected, actual, cmd, output, stdout, stderr) @expected = expected @actual = actual @command = cmd @stdout = stdout @stderr = stderr super("command '#{command}' exited with #{actual}, expected #{expected}") end |
Instance Attribute Details
#actual ⇒ Object (readonly) Also known as: exitstatus
Returns the value of attribute actual.
18 19 20 |
# File 'lib/apt_control/exec.rb', line 18 def actual @actual end |
#command ⇒ Object (readonly)
Returns the value of attribute command.
18 19 20 |
# File 'lib/apt_control/exec.rb', line 18 def command @command end |
#expect ⇒ Object (readonly)
Returns the value of attribute expect.
18 19 20 |
# File 'lib/apt_control/exec.rb', line 18 def expect @expect end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
18 19 20 |
# File 'lib/apt_control/exec.rb', line 18 def output @output end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
18 19 20 |
# File 'lib/apt_control/exec.rb', line 18 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
18 19 20 |
# File 'lib/apt_control/exec.rb', line 18 def stdout @stdout end |