Move config file exceptions into app.exceptions

Move ConfigDirError, ConfigFileNotFoundError, ConfigFileExistsError, ConfigFileWriteError, and ConfigFileNameError from raw_config_io_service into the shared domain exception module. Update router and tests to import the exceptions from app.exceptions.
This commit is contained in:
2026-04-15 10:28:27 +02:00
parent 328f3575e2
commit 0e22d1c425
7 changed files with 53 additions and 41 deletions

View File

@@ -26,7 +26,7 @@ from app.models.file_config import (
JailConfigFileContent,
JailConfigFilesResponse,
)
from app.services.raw_config_io_service import (
from app.exceptions import (
ConfigDirError,
ConfigFileExistsError,
ConfigFileNameError,