Exception: RubyCoded::Chat::CodexAPIError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ruby_coded/chat/codex_bridge.rb

Overview

Raised when the Codex HTTP API returns a non-2xx response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, detail) ⇒ CodexAPIError

Returns a new instance of CodexAPIError.



30
31
32
33
# File 'lib/ruby_coded/chat/codex_bridge.rb', line 30

def initialize(status, detail)
  @status = status
  super("HTTP #{status}: #{detail}")
end

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



28
29
30
# File 'lib/ruby_coded/chat/codex_bridge.rb', line 28

def status
  @status
end