From ebb8b7099f5ef6542fef5d08dde434386897eb6b Mon Sep 17 00:00:00 2001 From: Alix JEUDI--LEMOINE Date: Thu, 21 Mar 2024 09:01:06 +0100 Subject: [PATCH] =?UTF-8?q?Correction=20type=20pour=20=C3=AAtre=20plus=20g?= =?UTF-8?q?=C3=A9n=C3=A9rique=20(comme=20=C3=A7a=20String=20+=20int=20pass?= =?UTF-8?q?ent)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sae/exceptions/notFound/EntityNotFoundException.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpringBootProject/src/main/java/fr/iut/sciencequest/sae/exceptions/notFound/EntityNotFoundException.java b/SpringBootProject/src/main/java/fr/iut/sciencequest/sae/exceptions/notFound/EntityNotFoundException.java index ff7c529..25e37c9 100644 --- a/SpringBootProject/src/main/java/fr/iut/sciencequest/sae/exceptions/notFound/EntityNotFoundException.java +++ b/SpringBootProject/src/main/java/fr/iut/sciencequest/sae/exceptions/notFound/EntityNotFoundException.java @@ -9,7 +9,7 @@ public abstract class EntityNotFoundException extends RuntimeException { public EntityNotFoundException(){ super("entity not found"); } - public EntityNotFoundException(String entityName, int id){ + public EntityNotFoundException(String entityName, Object id){ super(entityName + " not found with id : " + id); } }