Skip to content

Commit aefd384

Browse files
committed
@sanderegg review: folder
1 parent 429cbb8 commit aefd384

File tree

7 files changed

+18
-22
lines changed

7 files changed

+18
-22
lines changed

services/web/server/src/simcore_service_webserver/exception_handling.py

Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from ._base import ExceptionHandlersMap, exception_handling_decorator
2+
from ._factory import ExceptionToHttpErrorMap, HttpErrorInfo, to_exceptions_handlers_map
3+
4+
__all__: tuple[str, ...] = (
5+
"ExceptionHandlersMap",
6+
"ExceptionToHttpErrorMap",
7+
"HttpErrorInfo",
8+
"exception_handling_decorator",
9+
"to_exceptions_handlers_map",
10+
)
11+
12+
# nopycln: file

services/web/server/src/simcore_service_webserver/exception_handling_factory.py renamed to services/web/server/src/simcore_service_webserver/exception_handling/_factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from servicelib.logging_errors import create_troubleshotting_log_kwargs
1010
from servicelib.status_codes_utils import is_5xx_server_error, is_error
1111

12-
from .exception_handling_base import AiohttpExceptionHandler, ExceptionHandlersMap
12+
from ._base import AiohttpExceptionHandler, ExceptionHandlersMap
1313

1414
_logger = logging.getLogger(__name__)
1515

services/web/server/tests/unit/isolated/test_exception_handling.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
exception_handling_decorator,
2020
to_exceptions_handlers_map,
2121
)
22-
from simcore_service_webserver.exception_handling_base import (
22+
from simcore_service_webserver.exception_handling._base import (
2323
exception_handling_middleware,
2424
)
25-
from simcore_service_webserver.exception_handling_factory import (
25+
from simcore_service_webserver.exception_handling._factory import (
2626
create_http_error_exception_handlers_map,
2727
)
2828

services/web/server/tests/unit/isolated/test_exception_handling_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from aiohttp import web
1111
from aiohttp.test_utils import make_mocked_request
1212
from simcore_service_webserver.errors import WebServerBaseError
13-
from simcore_service_webserver.exception_handling_base import (
13+
from simcore_service_webserver.exception_handling._base import (
1414
AiohttpExceptionHandler,
1515
ExceptionHandlingContextManager,
1616
_sort_exceptions_by_specificity,

services/web/server/tests/unit/isolated/test_exception_handling_factory.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
from servicelib.aiohttp import status
1515
from servicelib.mimetype_constants import MIMETYPE_APPLICATION_JSON
1616
from simcore_service_webserver.errors import WebServerBaseError
17-
from simcore_service_webserver.exception_handling_base import (
17+
from simcore_service_webserver.exception_handling._base import (
1818
ExceptionHandlingContextManager,
1919
exception_handling_decorator,
2020
)
21-
from simcore_service_webserver.exception_handling_factory import (
21+
from simcore_service_webserver.exception_handling._factory import (
2222
ExceptionToHttpErrorMap,
2323
HttpErrorInfo,
2424
create_exception_handler_from_http_info,

0 commit comments

Comments
 (0)