schemas updated
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
from ErrorHandlers.ApiErrorHandlers.api_exc_handler import (
|
||||
HTTPExceptionApiHandler,
|
||||
HTTPExceptionApi,
|
||||
)
|
||||
|
||||
|
||||
__all__ = [
|
||||
"HTTPExceptionApiHandler",
|
||||
"HTTPExceptionApi",
|
||||
]
|
||||
@@ -1,11 +1,5 @@
|
||||
from typing import Any, Dict, List, Optional
|
||||
|
||||
|
||||
class HTTPExceptionApi(Exception):
|
||||
|
||||
def __init__(self, error_code: str, lang: str):
|
||||
self.error_code = error_code
|
||||
self.lang = lang
|
||||
from typing import Any, Dict
|
||||
from ErrorHandlers.Exceptions.api_exc import HTTPExceptionApi
|
||||
|
||||
|
||||
class HTTPExceptionApiHandler:
|
||||
7
ErrorHandlers/Exceptions/api_exc.py
Normal file
7
ErrorHandlers/Exceptions/api_exc.py
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
|
||||
class HTTPExceptionApi(Exception):
|
||||
|
||||
def __init__(self, error_code: str, lang: str):
|
||||
self.error_code = error_code
|
||||
self.lang = lang
|
||||
@@ -0,0 +1,12 @@
|
||||
from ErrorHandlers.ErrorHandlers.api_exc_handler import (
|
||||
HTTPExceptionApiHandler,
|
||||
)
|
||||
from ErrorHandlers.Exceptions.api_exc import (
|
||||
HTTPExceptionApi,
|
||||
)
|
||||
|
||||
|
||||
__all__ = [
|
||||
"HTTPExceptionApiHandler",
|
||||
"HTTPExceptionApi",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user