Class Cheetah::ExecutionFailed
In: lib/cheetah.rb
Parent: StandardError

Exception raised when a command execution fails.

Methods

new  

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

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

[Validate]