Exception: FlowSpeech::APIError
- Defined in:
- lib/flowspeech/client.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
-
#retryable ⇒ Object
readonly
Returns the value of attribute retryable.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, status:, code: nil, error_code: nil, retryable: false, retry_after: nil) ⇒ APIError
constructor
A new instance of APIError.
Constructor Details
#initialize(message, status:, code: nil, error_code: nil, retryable: false, retry_after: nil) ⇒ APIError
Returns a new instance of APIError.
14 15 16 17 18 19 20 21 |
# File 'lib/flowspeech/client.rb', line 14 def initialize(, status:, code: nil, error_code: nil, retryable: false, retry_after: nil) super() @status = status @code = code @error_code = error_code @retryable = retryable @retry_after = retry_after end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
12 13 14 |
# File 'lib/flowspeech/client.rb', line 12 def code @code end |
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
12 13 14 |
# File 'lib/flowspeech/client.rb', line 12 def error_code @error_code end |
#retry_after ⇒ Object (readonly)
Returns the value of attribute retry_after.
12 13 14 |
# File 'lib/flowspeech/client.rb', line 12 def retry_after @retry_after end |
#retryable ⇒ Object (readonly)
Returns the value of attribute retryable.
12 13 14 |
# File 'lib/flowspeech/client.rb', line 12 def retryable @retryable end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
12 13 14 |
# File 'lib/flowspeech/client.rb', line 12 def status @status end |