18 lines
463 B
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!");
|
|
}
|
|
|
|
}
|