Class: Open4::SpawnError

### Home Classes Methods

### In Files

- lib/open4.rb

### Parent

Open4::Error

### Methods

- ::new
- #exitstatus

### Class/Module Index

Quicksearch

- Open4
- Open4::Error
- Open4::SpawnError
- Open4::ThreadEnsemble
- Object

No matching classes.

# Open4::SpawnError

### Attributes

cmd[R]
signals[R]
status[R]

### Public Class Methods

new(cmd, status) click to toggle source

    # File lib/open4.rb, line 144
    def initialize cmd, status
      @cmd, @status = cmd, status
      @signals = {}
      if status.signaled?
        @signals['termsig'] = status.termsig
        @signals['stopsig'] = status.stopsig
      end
      sigs = @signals.map{|k,v| "#{ k }:#{ v.inspect }"}.join(' ')
      super "cmd <#{ cmd }> failed with status <#{ exitstatus.inspect }> signals <#{ sigs }>"
    end

### Public Instance Methods

exitstatus() click to toggle source

    # File lib/open4.rb, line 141
    def exitstatus
      @status.exitstatus
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.