Exception: GemMine::CommandError

Inherits:
Error
  • Object
show all
Defined in:
lib/gem_mine.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command, status, stdout, stderr) ⇒ CommandError

Returns a new instance of CommandError.



17
18
19
20
21
22
23
# File 'lib/gem_mine.rb', line 17

def initialize(command, status, stdout, stderr)
  @command = command
  @status = status
  @stdout = stdout
  @stderr = stderr
  super("Command failed (#{status.exitstatus}): #{command.join(" ")}")
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



15
16
17
# File 'lib/gem_mine.rb', line 15

def command
  @command
end

#statusObject (readonly)

Returns the value of attribute status.



15
16
17
# File 'lib/gem_mine.rb', line 15

def status
  @status
end

#stderrObject (readonly)

Returns the value of attribute stderr.



15
16
17
# File 'lib/gem_mine.rb', line 15

def stderr
  @stderr
end

#stdoutObject (readonly)

Returns the value of attribute stdout.



15
16
17
# File 'lib/gem_mine.rb', line 15

def stdout
  @stdout
end