Exception: Discourse::Utils::CommandError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, status: nil, stdout: nil, stderr: nil) ⇒ CommandError

Returns a new instance of CommandError.



119
120
121
122
123
124
# File 'lib/discourse.rb', line 119

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

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



118
119
120
# File 'lib/discourse.rb', line 118

def status
  @status
end

#stderrObject (readonly)

Returns the value of attribute stderr.



118
119
120
# File 'lib/discourse.rb', line 118

def stderr
  @stderr
end

#stdoutObject (readonly)

Returns the value of attribute stdout.



118
119
120
# File 'lib/discourse.rb', line 118

def stdout
  @stdout
end