Exception: CommandUtils::StatusError

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

Overview

Parent class for all status errors.

Direct Known Subclasses

NonZeroExit, Signaled, Stopped, Unknown

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, status, command) ⇒ StatusError

Returns a new instance of StatusError.



170
171
172
173
# File 'lib/command_utils.rb', line 170

def initialize message, status, command
  super message
  @status, @command = status, command
end

Instance Attribute Details

#commandObject

Command as passed to Process#spawn



169
170
171
# File 'lib/command_utils.rb', line 169

def command
  @command
end

#statusObject

Process::Status



167
168
169
# File 'lib/command_utils.rb', line 167

def status
  @status
end