Class: Landlock::SafeExec::CommandError
- Defined in:
- lib/landlock/safe_exec.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
-
#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, stdout: "", stderr: "", status: nil, result: nil) ⇒ CommandError
constructor
A new instance of CommandError.
Constructor Details
#initialize(message, stdout: "", stderr: "", status: nil, result: nil) ⇒ CommandError
Returns a new instance of CommandError.
16 17 18 19 20 21 22 |
# File 'lib/landlock/safe_exec.rb', line 16 def initialize(, stdout: "", stderr: "", status: nil, result: nil) @stdout = stdout @stderr = stderr @status = status @result = result super() end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
14 15 16 |
# File 'lib/landlock/safe_exec.rb', line 14 def result @result end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
14 15 16 |
# File 'lib/landlock/safe_exec.rb', line 14 def status @status end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
14 15 16 |
# File 'lib/landlock/safe_exec.rb', line 14 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
14 15 16 |
# File 'lib/landlock/safe_exec.rb', line 14 def stdout @stdout end |