Revision 27723 branches/v2_0_0_prep/libraries/libUIComponent/src/org/gvsig/gui/beans/panelGroup/exceptions/ListCouldntAddPanelException.java
ListCouldntAddPanelException.java | ||
---|---|---|
29 | 29 |
* <p>It's possible that during the loading process of an {@link IPanelGroupLoader IPanelGroupLoader}, any of the panels |
30 | 30 |
* that are being added could failed. To avoid stop the process, the exception launched will be caught and |
31 | 31 |
* stored in a <code>ListCouldntAddPanelException</code>.</p> |
32 |
*
|
|
32 |
* |
|
33 | 33 |
* @version 28/11/2007 |
34 |
* @author Pablo Piqueras Bartolom? (pablo.piqueras@iver.es)
|
|
34 |
* @author Pablo Piqueras Bartolom? (pablo.piqueras@iver.es) |
|
35 | 35 |
*/ |
36 | 36 |
public class ListCouldntAddPanelException extends ListBaseException { |
37 | 37 |
private static final long serialVersionUID = -8397609549559655067L; |
38 | 38 |
|
39 |
// Default text that explains this kind of exception. If there is no |
|
40 |
// translation associated to the |
|
41 |
// "messageKey" of this exception, then the value shown will be the value of |
|
42 |
// "formatString". |
|
43 |
private static final String formatString = "Couldn't add some panels to the panel-group component:"; |
|
44 |
|
|
45 |
// Key to the sentence that explains this exception. That key will be use |
|
46 |
// for multilingual purposes. |
|
47 |
private static final String messageKey = "couldnt_add_some_panel_exception"; |
|
48 |
|
|
39 | 49 |
/** |
40 | 50 |
* <p>Creates an initializes a new instance of <code>ListCouldntAddPanelException</code>.</p> |
41 | 51 |
*/ |
42 | 52 |
public ListCouldntAddPanelException() { |
43 |
super(); |
|
53 |
super(formatString, messageKey, serialVersionUID);
|
|
44 | 54 |
|
45 |
// Identifier of this kind of exception |
|
46 |
this.code = serialVersionUID; |
|
47 |
|
|
48 |
// Default text that explains this kind of exception. If there is no translation associated to the |
|
49 |
// "messageKey" of this exception, then the value shown will be the value of "formatString". |
|
50 |
this.formatString = "Couldn't add some panels to the panel-group component:"; |
|
51 |
|
|
52 |
// Key to the sentence that explains this exception. That key will be use for multilingual purposes. |
|
53 |
this.messageKey = "couldnt_add_some_panel_exception"; |
|
54 |
|
|
55 | 55 |
setTranslator(new Messages()); |
56 | 56 |
} |
57 | 57 |
|
Also available in: Unified diff