Exception: YandexSpeechApi::Connection::ConnectionError

Inherits:
YandexSpeechError
  • Object
show all
Defined in:
lib/yandex_speech/connection.rb

Overview

Raised when connection failed.

Instance Method Summary collapse

Constructor Details

#initialize(code, message) ⇒ ConnectionError

Returns a new instance of ConnectionError.



50
# File 'lib/yandex_speech/connection.rb', line 50

def initialize(code, message); super "Connection refused by remote server. Error code: '#{code}', Exception message: '#{message}'." end