Exception: Deepseek::ApiError
- Inherits:
-
StandardError
- Object
- StandardError
- Deepseek::ApiError
- Defined in:
- lib/deepseek-ruby/client.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, body) ⇒ ApiError
constructor
A new instance of ApiError.
Constructor Details
#initialize(status, body) ⇒ ApiError
Returns a new instance of ApiError.
79 80 81 82 83 |
# File 'lib/deepseek-ruby/client.rb', line 79 def initialize(status, body) @status = status @body = body super("API Error: #{status} - #{body}") end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
77 78 79 |
# File 'lib/deepseek-ruby/client.rb', line 77 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
77 78 79 |
# File 'lib/deepseek-ruby/client.rb', line 77 def status @status end |