Closed qryxip closed 1 year ago
コードが整っているとは言えない状態ですが、とりあえず実装は完了。
今気付いたのですがJava APIの方、IOException
相当のものをthrowするならthrows
にしないと駄目ですね。多分。
今気付いたのですがJava APIの方、
IOException
相当のものをthrowするならthrows
にしないと駄目ですね。多分。
これを今やりました。
9e87842
(#640)
@sevenc-nanashi すみません。お手数ですがこちらも確認して頂いてもよいでしょうか。OKならそのままマージして頂けると。
CI通ったらマージします。
内容
Python APIとJava APIの例外に、次の変更を加えます。
VoicevoxError
/VoicevoxException
を解体し、細分化以下の例外クラスを継承するようにする。
NotLoadedOpenjtalkDict
Exception
IllegalStateException
GpuSupport
Exception
RuntimeException
OpenZipFile
Exception
IOException
ReadZipEntry
Exception
IOException
ModelAlreadyLoaded
Exception
IllegalStateException
StyleAlreadyLoaded
Exception
IllegalStateException
InvalidModelData
Exception
IOException
GetSupportedDevices
Exception
IOException
StyleNotFound
KeyError
IndexOutOfBoundsException
ModelNotFound
KeyError
IndexOutOfBoundsException
InferenceFailed
Exception
IOException
ExtractFullContextLabel
Exception
IllegalArgumentException
ParseKana
ValueError
IllegalArgumentException
LoadUserDict
Exception
IOException
SaveUserDict
Exception
IOException
WordNotFound
KeyError
IndexOutOfBoundsException
UseUserDict
Exception
RuntimeException
InvalidWord
ValueError
IllegalArgumentException
ValueError
とかIllegalArgumentException
とかRustの"source"を"cause"に反映
関連 Issue
580, #589, #600, #622, #623, #624 の続きです。
ref #545
その他
580 で言ったこれに対応します。