Project

General

Profile

1
package eu.dnetlib.openaire.exporter.community;
2

    
3
import java.io.IOException;
4

    
5
import org.springframework.http.HttpStatus;
6
import org.springframework.web.bind.annotation.ResponseBody;
7
import org.springframework.web.bind.annotation.ResponseStatus;
8

    
9
@ResponseBody
10
@ResponseStatus(value = HttpStatus.INTERNAL_SERVER_ERROR)
11
public class CommunityException extends Exception {
12

    
13
	public CommunityException(final String message) {
14
		super(message);
15
	}
16

    
17
	public CommunityException(final IOException e) {
18
		super(e);
19
	}
20
}
(6-6/13)