Ajout exceptions notFound Jeu/Invite

Springboot
Alix JEUDI--LEMOINE 1 year ago
parent fa5883ceb2
commit f655f37284

@ -1,2 +1,11 @@
package fr.iut.sciencequest.sae.exceptions.notFound;public class InviteNotFoundException { package fr.iut.sciencequest.sae.exceptions.notFound;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(HttpStatus.NOT_FOUND)
public class InviteNotFoundException extends EntityNotFoundException{
public InviteNotFoundException(String id) {
super("Invite", id);
}
} }

@ -1,7 +1,7 @@
package fr.iut.sciencequest.sae.exceptions.notFound; package fr.iut.sciencequest.sae.exceptions.notFound;
public class DifficulteNotFoundException extends EntityNotFoundException{ public class JeuNotFoundException extends EntityNotFoundException{
public DifficulteNotFoundException(int id) { public JeuNotFoundException(int id) {
super("Difficulté", id); super("Jeu", id);
} }
} }

Loading…
Cancel
Save