Exception: RubyCoded::Chat::CodexAPIError
- Inherits:
-
StandardError
- Object
- StandardError
- RubyCoded::Chat::CodexAPIError
- 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
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, detail) ⇒ CodexAPIError
constructor
A new instance of CodexAPIError.
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
#status ⇒ Object (readonly)
Returns the value of attribute status.
28 29 30 |
# File 'lib/ruby_coded/chat/codex_bridge.rb', line 28 def status @status end |