2019-01-03 13:19:45 +01:00
|
|
|
package eu.dnetlib.repo.manager.exception;
|
2018-07-21 17:07:29 +02:00
|
|
|
|
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
|
import org.springframework.web.bind.annotation.ResponseStatus;
|
|
|
|
|
|
|
|
@ResponseStatus(HttpStatus.NOT_FOUND)
|
|
|
|
public class ResourceNotFoundException extends Exception {
|
|
|
|
public ResourceNotFoundException() {
|
|
|
|
super("Resource Not Found");
|
|
|
|
}
|
|
|
|
|
|
|
|
public ResourceNotFoundException(String id, String resourceType) {
|
|
|
|
super(resourceType + " with id " + id + " was not found");
|
|
|
|
}
|
|
|
|
}
|