[Trunk | Orcid Service]: ContentNotFoundException.java & WorkController.java: [Bug fix] Added missing file for ContentNotFoundException.

master
Konstantina Galouni 5 months ago
parent a08f5ddc77
commit e066e0aa35

@ -7,6 +7,7 @@ import eu.dnetlib.uoaorcidservice.entities.ResultIdAndWork;
import eu.dnetlib.uoaorcidservice.entities.UserTokens;
import eu.dnetlib.uoaorcidservice.entities.Work;
import eu.dnetlib.uoaorcidservice.handlers.ConflictException;
import eu.dnetlib.uoaorcidservice.handlers.ContentNotFoundException;
import eu.dnetlib.uoaorcidservice.services.UserTokensService;
import eu.dnetlib.uoaorcidservice.services.WorkService;
import org.apache.log4j.Logger;

@ -0,0 +1,11 @@
package eu.dnetlib.uoaorcidservice.handlers;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(HttpStatus.NOT_FOUND)
public class ContentNotFoundException extends RuntimeException {
public ContentNotFoundException(String message){
super(message);
}
}
Loading…
Cancel
Save