1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package com.sun.syndication.fetcher;
18
19 /***
20 * @author Nick Lothian
21 *
22 */
23 public class FetcherException extends Exception {
24 private static final long serialVersionUID = -7479645796948092380L;
25
26 int responseCode;
27
28 public FetcherException(Throwable cause) {
29 super();
30 initCause(cause);
31 }
32
33 public FetcherException(String message, Throwable cause) {
34 super(message);
35 initCause(cause);
36 }
37
38 public FetcherException(String message) {
39 super(message);
40 }
41
42 public FetcherException(int responseCode, String message) {
43 this(message);
44 this.responseCode = responseCode;
45 }
46
47 public int getResponseCode() {
48 return responseCode;
49 }
50
51 }