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