forked from tom.biard/ScienceQuest
parent
fb4fe8f283
commit
b73afa868b
@ -1,12 +1,11 @@
|
||||
package fr.iut.sciencequest.sae.exceptions;
|
||||
|
||||
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.web.bind.annotation.ResponseStatus;
|
||||
|
||||
@ResponseStatus(HttpStatus.CONFLICT)
|
||||
public class DuplicatedEntity extends RuntimeException {
|
||||
public DuplicatedEntity(String message){
|
||||
super(message);
|
||||
public class DuplicatedIdException extends RuntimeException{
|
||||
public DuplicatedIdException(){
|
||||
super("duplicated id");
|
||||
}
|
||||
}
|
Loading…
Reference in new issue