refacto: rename app into backend, to prepare for frontend dev
This commit is contained in:
parent
017092040d
commit
e605bf8603
32 changed files with 2 additions and 2 deletions
17
server/backend/domain/exceptions.py
Normal file
17
server/backend/domain/exceptions.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
class DomainError(Exception):
|
||||
"""Base pour toutes les erreurs de domaine"""
|
||||
|
||||
class InfrastructureError(Exception):
|
||||
"""Erreur technique levée par un adapter"""
|
||||
|
||||
class DatabaseConnectionError(InfrastructureError):
|
||||
"""Impossible de se connecter à la db"""
|
||||
|
||||
class DatabaseError(InfrastructureError):
|
||||
"""Erreur lors d'une opération en base de données."""
|
||||
|
||||
class MessageBrokerError(InfrastructureError):
|
||||
"""Impossible de se connecter au broker MQTT"""
|
||||
|
||||
class ValidationError(DomainError):
|
||||
"""Données d'entrée invalides"""
|
||||
Loading…
Add table
Add a link
Reference in a new issue