uoa-repository-manager-service/src/main/java/eu/dnetlib/repo/manager/exception/EndPointException.java

18 lines
463 B
Java

package eu.dnetlib.repo.manager.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(HttpStatus.GATEWAY_TIMEOUT)
public class EndPointException extends Exception{
public EndPointException() {
super("Endpoint not responding!");
}
public EndPointException(String url) {
super("Endpoint with url: " + url + " not responding!");
}
}