Exception: AzureSTT::NetError
- Defined in:
- lib/azure_stt/errors.rb
Overview
Error raised when there is an error 500
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code:, message:) ⇒ NetError
constructor
A new instance of NetError.
Constructor Details
#initialize(code:, message:) ⇒ NetError
Returns a new instance of NetError.
27 28 29 30 |
# File 'lib/azure_stt/errors.rb', line 27 def initialize(code:, message:) @code = code super("#{} (#{code})") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
25 26 27 |
# File 'lib/azure_stt/errors.rb', line 25 def code @code end |