Exception: Cheetah::ExecutionFailed

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cheetah.rb

Overview

Exception raised when a command execution fails.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(commands, status, stdout, stderr, message = nil) ⇒ ExecutionFailed

Initializes a new Cheetah::ExecutionFailed instance.


68
69
70
71
72
73
74
# File 'lib/cheetah.rb', line 68

def initialize(commands, status, stdout, stderr, message = nil)
  super(message)
  @commands = commands
  @status   = status
  @stdout   = stdout
  @stderr   = stderr
end

Instance Attribute Details

#commandsArray<Array<String>> (readonly)


46
47
48
# File 'lib/cheetah.rb', line 46

def commands
  @commands
end

#statusProcess::Status (readonly)


49
50
51
# File 'lib/cheetah.rb', line 49

def status
  @status
end

#stderrString? (readonly)


57
58
59
# File 'lib/cheetah.rb', line 57

def stderr
  @stderr
end

#stdoutString? (readonly)


53
54
55
# File 'lib/cheetah.rb', line 53

def stdout
  @stdout
end