Exception: Open4::SpawnError
- Defined in:
- lib/open4.rb,
lib/open4-0.4.0.rb
Instance Attribute Summary collapse
-
#cmd ⇒ Object
readonly
–{{{.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
- #exitstatus ⇒ Object
-
#initialize(cmd, status) ⇒ SpawnError
constructor
A new instance of SpawnError.
Constructor Details
#initialize(cmd, status) ⇒ SpawnError
Returns a new instance of SpawnError.
84 85 86 87 |
# File 'lib/open4.rb', line 84 def initialize cmd, status @cmd, @status = cmd, status super "cmd <#{ cmd }> failed with <#{ exitstatus }>" end |
Instance Attribute Details
#cmd ⇒ Object (readonly)
–{{{
79 80 81 |
# File 'lib/open4.rb', line 79 def cmd @cmd end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
80 81 82 |
# File 'lib/open4.rb', line 80 def status @status end |
Instance Method Details
#exitstatus ⇒ Object
81 82 83 |
# File 'lib/open4.rb', line 81 def exitstatus @status.exitstatus end |