Class: Landlock::SafeExec::CommandError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, stdout: "", stderr: "", status: nil, result: nil)
  @stdout = stdout
  @stderr = stderr
  @status = status
  @result = result
  super(message)
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



14
15
16
# File 'lib/landlock/safe_exec.rb', line 14

def result
  @result
end

#statusObject (readonly)

Returns the value of attribute status.



14
15
16
# File 'lib/landlock/safe_exec.rb', line 14

def status
  @status
end

#stderrObject (readonly)

Returns the value of attribute stderr.



14
15
16
# File 'lib/landlock/safe_exec.rb', line 14

def stderr
  @stderr
end

#stdoutObject (readonly)

Returns the value of attribute stdout.



14
15
16
# File 'lib/landlock/safe_exec.rb', line 14

def stdout
  @stdout
end