Exception: AzureSTT::NetError

Inherits:
Error
  • Object
show all
Defined in:
lib/azure_stt/errors.rb

Overview

Error raised when there is an error 500

Instance Attribute Summary collapse

Instance Method Summary collapse

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("#{message} (#{code})")
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



25
26
27
# File 'lib/azure_stt/errors.rb', line 25

def code
  @code
end