Correction type pour être plus générique (comme ça String + int passent)

Springboot
Alix JEUDI--LEMOINE 1 year ago
parent 649399b67d
commit ebb8b7099f

@ -9,7 +9,7 @@ public abstract class EntityNotFoundException extends RuntimeException {
public EntityNotFoundException(){ public EntityNotFoundException(){
super("entity not found"); super("entity not found");
} }
public EntityNotFoundException(String entityName, int id){ public EntityNotFoundException(String entityName, Object id){
super(entityName + " not found with id : " + id); super(entityName + " not found with id : " + id);
} }
} }

Loading…
Cancel
Save