Exception: AzureSTT::Error
- Inherits:
-
StandardError
- Object
- StandardError
- AzureSTT::Error
- Defined in:
- lib/azure_stt/errors.rb
Overview
Top level error for AzureSTT specific errors
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code:, message:) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(code:, message:) ⇒ Error
Returns a new instance of Error.
10 11 12 13 |
# File 'lib/azure_stt/errors.rb', line 10 def initialize(code:, message:) @code = code super("#{} (#{code})") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
8 9 10 |
# File 'lib/azure_stt/errors.rb', line 8 def code @code end |