16 lines
480 B
Java
16 lines
480 B
Java
package eu.dnetlib.repo.manager.exception;
|
|
|
|
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");
|
|
}
|
|
}
|