Exception: Command::Error

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/prick/command.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, status, stdout, stderr) ⇒ Error

Returns a new instance of Error.



9
10
11
12
13
14
# File 'lib/prick/command.rb', line 9

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

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



5
6
7
# File 'lib/prick/command.rb', line 5

def status
  @status
end

#stderrObject (readonly)

Returns the value of attribute stderr.



7
8
9
# File 'lib/prick/command.rb', line 7

def stderr
  @stderr
end

#stdoutObject (readonly)

Returns the value of attribute stdout.



6
7
8
# File 'lib/prick/command.rb', line 6

def stdout
  @stdout
end