Exception: Voicevox::CoreError
- Defined in:
- lib/voicevox/error.rb
Overview
Voicevoxのコアで発生したエラー。
Direct Known Subclasses
CantGpuSupport, FailedExtractFullContextLabel, FailedGetSupportedDevices, FailedLoadMetas, FailedLoadModel, FailedParseKana, InferenceFailed, InvalidAudioQuery, InvalidModelIndex, InvalidSpeakerId, InvalidUtf8Input, NotLoadedOpenjtalkDict, UninitializedStatus
Defined Under Namespace
Classes: CantGpuSupport, FailedExtractFullContextLabel, FailedGetSupportedDevices, FailedLoadMetas, FailedLoadModel, FailedParseKana, InferenceFailed, InvalidAudioQuery, InvalidModelIndex, InvalidSpeakerId, InvalidUtf8Input, NotLoadedOpenjtalkDict, UninitializedStatus
Class Attribute Summary collapse
-
.code ⇒ Object
readonly
Returns the value of attribute code.
Instance Attribute Summary collapse
-
#code ⇒ Symbol
readonly
エラーコード。.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ CoreError
constructor
A new instance of CoreError.
Constructor Details
Class Attribute Details
.code ⇒ Object (readonly)
Returns the value of attribute code.
29 30 31 |
# File 'lib/voicevox/error.rb', line 29 def code @code end |
Instance Attribute Details
#code ⇒ Symbol (readonly)
Returns エラーコード。.
17 18 19 |
# File 'lib/voicevox/error.rb', line 17 def code @code end |
Class Method Details
.from_code(code) ⇒ Object
31 32 33 34 35 36 |
# File 'lib/voicevox/error.rb', line 31 def from_code(code) ObjectSpace .each_object(Class) .find { |klass| klass < self && klass.code == code } .new end |