Exception: YandexSpeechApi::MP3_Player::WrongFileExtension

Inherits:
StandardError
  • Object
show all
Defined in:
lib/yandex_speech/mp3_player.rb

Overview

This is supposed to been raised when filename has wrong (not mp3) extension. Used to give minimal protection against files with unknown format.

Instance Method Summary collapse

Constructor Details

#initialize(filename) ⇒ WrongFileExtension


151
# File 'lib/yandex_speech/mp3_player.rb', line 151

def initialize(filename); super "Mp3 player can work only with files with '.mp3' extension. Please change extension for #{filename} if you sure that format is correct!'" end