svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.plugin / org.gvsig.downloader / org.gvsig.downloader.lib / org.gvsig.downloader.lib.api / src / main / java / org / gvsig / downloader / IOExceptionWithStatus.java @ 47847
History | View | Annotate | Download (617 Bytes)
1 |
package org.gvsig.downloader; |
---|---|
2 |
|
3 |
import java.io.IOException; |
4 |
|
5 |
/**
|
6 |
*
|
7 |
* @author jjdelcerro
|
8 |
*/
|
9 |
public class IOExceptionWithStatus extends IOException { |
10 |
|
11 |
private final int status; |
12 |
|
13 |
public IOExceptionWithStatus(int status, String message, Throwable cause) { |
14 |
super(message, cause);
|
15 |
this.status = status;
|
16 |
} |
17 |
|
18 |
public IOExceptionWithStatus(int status, String message) { |
19 |
this(status, message, null); |
20 |
} |
21 |
|
22 |
public int getStatus() { |
23 |
return status;
|
24 |
} |
25 |
|
26 |
@Override
|
27 |
public String getMessage() { |
28 |
return super.getMessage() + ". status = " + this.status; |
29 |
} |
30 |
|
31 |
} |