Exception: YandexSpeechApi::Emotion::EmotionNotAllowed
- Inherits:
-
YandexSpeechError
- Object
- StandardError
- YandexSpeechError
- YandexSpeechApi::Emotion::EmotionNotAllowed
- Defined in:
- lib/yandex_speech/emotion.rb
Overview
Raised when unknown emotion has been selected.
Instance Method Summary collapse
-
#initialize(emotion) ⇒ EmotionNotAllowed
constructor
A new instance of EmotionNotAllowed.
Constructor Details
#initialize(emotion) ⇒ EmotionNotAllowed
Returns a new instance of EmotionNotAllowed.
37 |
# File 'lib/yandex_speech/emotion.rb', line 37 def initialize(emotion); super "Emotion '#{emotion}' not allowed for usage. To see list of allowed emotions use Emotion#list" end |