Project

General

Profile

1
package eu.dnetlib.enabling.datasources.common;
2

    
3
public class DsmNotFoundException extends Exception {
4

    
5
	private int code;
6

    
7
	public DsmNotFoundException(int code, String msg) {
8
		super(msg);
9
		this.code = code;
10
	}
11

    
12
	public DsmNotFoundException(int code, Throwable e) {
13
		super(e);
14
		this.code = code;
15
	}
16

    
17
	public DsmNotFoundException(int code, String msg, Throwable e) {
18
		super(msg, e);
19
		this.code = code;
20
	}
21

    
22
	public DsmNotFoundException(String msg) {
23
		this(404, msg);
24
	}
25

    
26
	public int getCode() {
27
		return code;
28
	}
29

    
30
	public void setCode(final int code) {
31
		this.code = code;
32
	}
33
}
(14-14/20)