class Cheetah::ExecutionFailed

Exception raised when a command execution fails.

Attributes

commands[R]

@return [Array<Array<String>>] the executed commands as an array where

each item is again an array containing an executed command in the first
element and its arguments in the remaining ones
status[R]

@return [Process::Status] the executed command exit status

stderr[R]

@return [String, nil] the output the executed command wrote to stderr; can

be `nil` if stderr was captured into a stream
stdout[R]

@return [String, nil] the output the executed command wrote to stdout; can

be `nil` if stdout was captured into a stream

Public Class Methods

new(commands, status, stdout, stderr, message = nil) click to toggle source

Initializes a new {ExecutionFailed} instance.

@param [Array<Array<String>>] commands the executed commands as an array

where each item is again an array containing an executed command in the
first element and its arguments in the remaining ones

@param [Process::Status] status the executed command exit status @param [String, nil] stdout the output the executed command wrote to stdout @param [String, nil] stderr the output the executed command wrote to stderr @param [String, nil] message the exception message

Calls superclass method
# File lib/cheetah.rb, line 70
def initialize(commands, status, stdout, stderr, message = nil)
  super(message)
  @commands = commands
  @status   = status
  @stdout   = stdout
  @stderr   = stderr
end