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 int responseCode;
25
26 public FetcherException(Throwable cause) {
27 super();
28 initCause(cause);
29 }
30
31 public FetcherException(String message, Throwable cause) {
32 super(message);
33 initCause(cause);
34 }
35
36 public FetcherException(String message) {
37 super(message);
38 }
39
40 public FetcherException(int responseCode, String message) {
41 this(message);
42 this.responseCode = responseCode;
43 }
44
45 public int getResponseCode() {
46 return responseCode;
47 }
48
49 }