KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sslexplorer > networkplaces > NetworkPlacesException


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

19             
20 package com.sslexplorer.networkplaces;
21
22 import com.sslexplorer.core.CoreException;
23
24
25 /**
26  * Specialisation of {@link CoreException} for exceptions generate during
27  * use of network places.
28  *
29  * @author Brett Smith <a HREF="mailto: brett@3sp.com">&lt;brett@3sp.com&gt;</a>
30  */

31 public class NetworkPlacesException extends CoreException {
32
33     
34     /**
35      * An attempt to paste a file or a folder into the same place as
36      * where the source file is located.
37      */

38     public final static int ERR_VFS_CANNOT_PASTE_TO_SOURCE = 1;
39     
40     /**
41      * Error category
42      */

43     public final static String JavaDoc ERROR_CATEGORY = "networkPlaces";
44
45     /**
46      * Constructor.
47      *
48      * @param code
49      */

50     public NetworkPlacesException(int code) {
51         super(code, ERROR_CATEGORY, NetworkPlacePlugin.MESSAGE_RESOURCES_KEY, (Throwable JavaDoc)null);
52     }
53
54     /**
55      * Constructor.
56      *
57      * @param code
58      * @param cause
59      * @param arg0
60      * @param arg1
61      * @param arg2
62      * @param arg3
63      */

64     public NetworkPlacesException(int code, Throwable JavaDoc cause, String JavaDoc arg0, String JavaDoc arg1, String JavaDoc arg2, String JavaDoc arg3) {
65         super(code, ERROR_CATEGORY, NetworkPlacePlugin.MESSAGE_RESOURCES_KEY, cause, arg0, arg1, arg2, arg3);
66     }
67
68     /**
69      * Constructor.
70      *
71      * @param code
72      * @param cause
73      * @param arg0
74      */

75     public NetworkPlacesException(int code,Throwable JavaDoc cause, String JavaDoc arg0) {
76         super(code, ERROR_CATEGORY, NetworkPlacePlugin.MESSAGE_RESOURCES_KEY, cause, arg0);
77     }
78
79     /**
80      * Constructor.
81      *
82      * @param code
83      * @param bundle
84      * @param cause
85      */

86     public NetworkPlacesException(int code, Throwable JavaDoc cause) {
87         super(code, ERROR_CATEGORY, NetworkPlacePlugin.MESSAGE_RESOURCES_KEY, cause);
88     }
89
90     /**
91      * Constructor.
92      *
93      * @param code
94      * @param arg0
95      */

96     public NetworkPlacesException(int code, String JavaDoc arg0) {
97         super(code, ERROR_CATEGORY, arg0);
98     }
99 }
100
Popular Tags