View Javadoc

1   /*
2    * Copyright 2004 Sun Microsystems, Inc.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
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  }