mirror of
https://github.com/ijaric/voice_assistant.git
synced 2025-05-24 14:33:26 +00:00
fix add errors
This commit is contained in:
parent
5ddcfe32ad
commit
84bfcdac5b
5
src/fastapi_app/lib/api/v1/handlers/health/__init__.py
Normal file
5
src/fastapi_app/lib/api/v1/handlers/health/__init__.py
Normal file
|
@ -0,0 +1,5 @@
|
|||
from .liveness_probe import router as health_router
|
||||
|
||||
__all__ = [
|
||||
"health_router",
|
||||
]
|
22
src/fastapi_app/lib/app/errors.py
Normal file
22
src/fastapi_app/lib/app/errors.py
Normal file
|
@ -0,0 +1,22 @@
|
|||
import typing
|
||||
|
||||
|
||||
class ApplicationError(Exception):
|
||||
def __init__(self, message: str, *args: typing.Any) -> None:
|
||||
super().__init__(*args)
|
||||
self.message = message
|
||||
|
||||
|
||||
class DisposeError(ApplicationError):
|
||||
pass
|
||||
|
||||
|
||||
class StartServerError(ApplicationError):
|
||||
pass
|
||||
|
||||
|
||||
__all__ = [
|
||||
"ApplicationError",
|
||||
"DisposeError",
|
||||
"StartServerError",
|
||||
]
|
Loading…
Reference in New Issue
Block a user