Exception: Kreuzberg::CLIProxy::CLIExecutionError

Inherits:
Error show all
Defined in:
lib/kreuzberg/cli_proxy.rb

Overview

CLI execution error with stderr and exit status

Instance Attribute Summary collapse

Attributes inherited from Errors::Error

#error_code, #panic_context

Instance Method Summary collapse

Constructor Details

#initialize(message, stderr:, status:) ⇒ CLIExecutionError

Returns a new instance of CLIExecutionError.



15
16
17
18
19
# File 'lib/kreuzberg/cli_proxy.rb', line 15

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

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



13
14
15
# File 'lib/kreuzberg/cli_proxy.rb', line 13

def status
  @status
end

#stderrObject (readonly)

Returns the value of attribute stderr.



13
14
15
# File 'lib/kreuzberg/cli_proxy.rb', line 13

def stderr
  @stderr
end