diff --git a/crates/voicevox_core_java_api/lib/src/main/java/jp/hiroshiba/voicevoxcore/exceptions/MissingModelDataException.java b/crates/voicevox_core_java_api/lib/src/main/java/jp/hiroshiba/voicevoxcore/exceptions/MissingModelDataException.java new file mode 100644 index 000000000..fde59a6e1 --- /dev/null +++ b/crates/voicevox_core_java_api/lib/src/main/java/jp/hiroshiba/voicevoxcore/exceptions/MissingModelDataException.java @@ -0,0 +1,14 @@ +package jp.hiroshiba.voicevoxcore.exceptions; + +import java.io.IOException; + +/** モデルデータが見つからなかった。 */ +public class MissingModelDataException extends IOException { + public MissingModelDataException(String message) { + super(message); + } + + public MissingModelDataException(String message, Throwable cause) { + super(message, cause); + } +} diff --git a/crates/voicevox_core_python_api/python/voicevox_core/_rust/__init__.pyi b/crates/voicevox_core_python_api/python/voicevox_core/_rust/__init__.pyi index 3a47ef02b..cc1ce8851 100644 --- a/crates/voicevox_core_python_api/python/voicevox_core/_rust/__init__.pyi +++ b/crates/voicevox_core_python_api/python/voicevox_core/_rust/__init__.pyi @@ -47,6 +47,11 @@ class StyleAlreadyLoadedError(Exception): ... +class MissingModelDataError(Exception): + """モデルデータが見つからなかった。""" + + ... + class InvalidModelDataError(Exception): """無効なモデルデータ。"""