namespace TrajetKmTracker.Api.Services.Exceptions; /// /// Levée lorsqu'une demande de modification ou de suppression cible un Trajet inexistant. /// Convertie en réponse HTTP 404 (Not Found) ; l'opération est bloquée et aucun Résumé_Mensuel /// n'est mis à jour (Exigences 5.6). /// public class TrajetNotFoundException : Exception { public TrajetNotFoundException(int id) : base($"Le trajet {id} n'existe pas.") { } public TrajetNotFoundException(string message) : base(message) { } public TrajetNotFoundException(string message, Exception innerException) : base(message, innerException) { } }