root / trunk / libraries / libUIComponent / src / org / gvsig / gui / beans / panelGroup / exceptions / ListCouldntAddPanelException.java @ 17327
History | View | Annotate | Download (2.35 KB)
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2007 IVER T.I. and Generalitat Valenciana.
|
4 |
*
|
5 |
* This program is free software; you can redistribute it and/or
|
6 |
* modify it under the terms of the GNU General Public License
|
7 |
* as published by the Free Software Foundation; either version 2
|
8 |
* of the License, or (at your option) any later version.
|
9 |
*
|
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 License
|
16 |
* along with this program; if not, write to the Free Software
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
18 |
*/
|
19 |
|
20 |
package org.gvsig.gui.beans.panelGroup.exceptions; |
21 |
|
22 |
import java.util.Map; |
23 |
|
24 |
import org.gvsig.exceptions.ListBaseException; |
25 |
import org.gvsig.gui.beans.panelGroup.loaders.IPanelGroupLoader; |
26 |
|
27 |
/**
|
28 |
* <p>It's possible that during the loading process of an {@link IPanelGroupLoader IPanelGroupLoader}, any of the panels
|
29 |
* that are being added could failed. To avoid stop the process, the exception launched will be caught and
|
30 |
* stored in a <code>ListCouldntAddPanelException</code>.</p>
|
31 |
*
|
32 |
* @version 28/11/2007
|
33 |
* @author Pablo Piqueras Bartolom? (pablo.piqueras@iver.es)
|
34 |
*/
|
35 |
public class ListCouldntAddPanelException extends ListBaseException { |
36 |
private static final long serialVersionUID = -8397609549559655067L; |
37 |
|
38 |
/**
|
39 |
* <p>Creates an initializes a new instance of <code>ListCouldntAddPanelException</code>.</p>
|
40 |
*/
|
41 |
public ListCouldntAddPanelException() {
|
42 |
super();
|
43 |
|
44 |
// Identifier of this kind of exception
|
45 |
this.code = serialVersionUID;
|
46 |
|
47 |
// Default text that explains this kind of exception. If there is no translation associated to the
|
48 |
// "messageKey" of this exception, then the value shown will be the value of "formatString".
|
49 |
this.formatString = "Couldn't load some panels:"; |
50 |
|
51 |
// Key to the sentence that explains this exception. That key will be use for multilingual purposes.
|
52 |
this.messageKey = "couldnt_load_some_panel_exception"; |
53 |
} |
54 |
|
55 |
/*
|
56 |
* (non-Javadoc)
|
57 |
* @see org.gvsig.exceptions.BaseException#values()
|
58 |
*/
|
59 |
protected Map values() { |
60 |
return null; |
61 |
} |
62 |
} |