Exception: Boxd::ExecError

Inherits:
Error
  • Object
show all
Defined in:
lib/boxd/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, exit_code:, stdout:, stderr:) ⇒ ExecError

Returns a new instance of ExecError.



18
19
20
21
22
23
# File 'lib/boxd/errors.rb', line 18

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

Instance Attribute Details

#exit_codeObject (readonly)

Returns the value of attribute exit_code.



16
17
18
# File 'lib/boxd/errors.rb', line 16

def exit_code
  @exit_code
end

#stderrObject (readonly)

Returns the value of attribute stderr.



16
17
18
# File 'lib/boxd/errors.rb', line 16

def stderr
  @stderr
end

#stdoutObject (readonly)

Returns the value of attribute stdout.



16
17
18
# File 'lib/boxd/errors.rb', line 16

def stdout
  @stdout
end