fix: improve error management when decoding uplink messages

This commit is contained in:
Alexis Fourmaux 2026-05-09 17:47:37 +02:00
parent f77cf3dd75
commit 5c480db410
3 changed files with 50 additions and 26 deletions

View file

@ -6,5 +6,8 @@ class InfrastructureError(Exception):
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"""