2019-01-03 13:19:45 +01:00
|
|
|
package eu.dnetlib.repo.manager.exception;
|
|
|
|
|
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
|
import org.springframework.web.bind.annotation.ResponseStatus;
|
|
|
|
|
2019-02-11 10:01:28 +01:00
|
|
|
import java.io.IOException;
|
|
|
|
|
|
|
|
//@ResponseStatus(HttpStatus.GATEWAY_TIMEOUT)
|
|
|
|
public class EndPointException extends IOException {
|
2019-01-03 13:19:45 +01:00
|
|
|
|
|
|
|
public EndPointException() {
|
|
|
|
super("Endpoint not responding!");
|
|
|
|
}
|
|
|
|
|
|
|
|
public EndPointException(String url) {
|
|
|
|
super("Endpoint with url: " + url + " not responding!");
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|