KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > sync4j > framework > engine > source > SyncSourceException


1 /**
2  * Copyright (C) 2003-2005 Funambol
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  */

18
19 /**
20  * @version $Id: SyncSourceException.java,v 1.8 2005/03/02 20:57:37 harrie Exp $
21  */

22 package sync4j.framework.engine.source;
23
24 import sync4j.framework.engine.SyncException;
25
26 public class SyncSourceException extends SyncException {
27    private String JavaDoc uri = null;
28    private String JavaDoc config = null;
29
30    public SyncSourceException(String JavaDoc msg) {
31         super(msg);
32     }
33
34    public SyncSourceException(String JavaDoc msg, int statusCode) {
35         super(msg, statusCode);
36     }
37
38    public SyncSourceException(String JavaDoc msg, Throwable JavaDoc cause) {
39         super(msg, cause);
40     }
41
42    public SyncSourceException(Throwable JavaDoc cause) {
43         super(cause);
44     }
45
46    public SyncSourceException(String JavaDoc uri, String JavaDoc config, Throwable JavaDoc cause) {
47         super(cause);
48         this.uri = uri;
49         this.config = config;
50     }
51
52    public String JavaDoc getUri() {
53         return this.uri;
54     }
55
56    public String JavaDoc getConfig() {
57         return this.config;
58     }
59 }
60
Popular Tags