Project

General

Profile

1
package eu.dnetlib.repo.manager.exception;
2

    
3
import org.springframework.http.HttpStatus;
4
import org.springframework.web.bind.annotation.ResponseStatus;
5

    
6
import java.io.IOException;
7

    
8
//@ResponseStatus(HttpStatus.GATEWAY_TIMEOUT)
9
public class EndPointException extends IOException {
10

    
11
    public EndPointException() {
12
            super("Endpoint not responding!");
13
        }
14

    
15
    public EndPointException(String url) {
16
            super("Endpoint with url: " + url + " not responding!");
17
        }
18

    
19
}
(1-1/3)