Exception: Open4::SpawnError

Inherits:
Error
  • Object
show all
Defined in:
lib/open4.rb,
lib/open4-0.4.0.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#cmdObject (readonly)

–{{{



79
80
81
# File 'lib/open4.rb', line 79

def cmd
  @cmd
end

#statusObject (readonly)

Returns the value of attribute status.



80
81
82
# File 'lib/open4.rb', line 80

def status
  @status
end

Instance Method Details

#exitstatusObject



81
82
83
# File 'lib/open4.rb', line 81

def exitstatus
  @status.exitstatus
end