Exception: SequenceServer::CommandFailed
- Inherits:
-
StandardError
- Object
- StandardError
- SequenceServer::CommandFailed
- Defined in:
- lib/sequenceserver/exceptions.rb
Overview
Raised if the ‘sys’ method could not successfully execute a shell command.
Instance Attribute Summary collapse
-
#exitstatus ⇒ Object
readonly
Returns the value of attribute exitstatus.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize(exitstatus, stdout: nil, stderr: nil) ⇒ CommandFailed
constructor
A new instance of CommandFailed.
Constructor Details
#initialize(exitstatus, stdout: nil, stderr: nil) ⇒ CommandFailed
Returns a new instance of CommandFailed.
153 154 155 156 157 |
# File 'lib/sequenceserver/exceptions.rb', line 153 def initialize(exitstatus, stdout: nil, stderr: nil) @exitstatus = exitstatus @stdout = stdout @stderr = stderr end |
Instance Attribute Details
#exitstatus ⇒ Object (readonly)
Returns the value of attribute exitstatus.
159 160 161 |
# File 'lib/sequenceserver/exceptions.rb', line 159 def exitstatus @exitstatus end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
159 160 161 |
# File 'lib/sequenceserver/exceptions.rb', line 159 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
159 160 161 |
# File 'lib/sequenceserver/exceptions.rb', line 159 def stdout @stdout end |