Exception: Discourse::Utils::CommandError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Discourse::Utils::CommandError
- Defined in:
- lib/discourse.rb
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize(message, status: nil, stdout: nil, stderr: nil) ⇒ CommandError
constructor
A new instance of CommandError.
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(, status: nil, stdout: nil, stderr: nil) super() @status = status @stdout = stdout @stderr = stderr end |
Instance Attribute Details
#status ⇒ Object (readonly)
Returns the value of attribute status.
118 119 120 |
# File 'lib/discourse.rb', line 118 def status @status end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
118 119 120 |
# File 'lib/discourse.rb', line 118 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
118 119 120 |
# File 'lib/discourse.rb', line 118 def stdout @stdout end |