Exception: RubyLLM::Agents::SpeechApiError
- Defined in:
- lib/ruby_llm/agents/core/errors.rb
Overview
Raised when the TTS API returns an error response
Instance Attribute Summary collapse
-
#response_body ⇒ Object
readonly
Returns the value of attribute response_body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message = nil, status: nil, response_body: nil) ⇒ SpeechApiError
constructor
A new instance of SpeechApiError.
Constructor Details
#initialize(message = nil, status: nil, response_body: nil) ⇒ SpeechApiError
Returns a new instance of SpeechApiError.
39 40 41 42 43 |
# File 'lib/ruby_llm/agents/core/errors.rb', line 39 def initialize( = nil, status: nil, response_body: nil) @status = status @response_body = response_body super( || "Speech API error (status: #{status})") end |
Instance Attribute Details
#response_body ⇒ Object (readonly)
Returns the value of attribute response_body.
37 38 39 |
# File 'lib/ruby_llm/agents/core/errors.rb', line 37 def response_body @response_body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
37 38 39 |
# File 'lib/ruby_llm/agents/core/errors.rb', line 37 def status @status end |