Statistics
| Revision:

root / trunk / libraries / libUIComponent / src / org / gvsig / gui / beans / panelGroup / exceptions / EmptyPanelGroupException.java @ 17327

History | View | Annotate | Download (2.21 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.BaseException;
25
import org.gvsig.gui.beans.panelGroup.IPanelGroup;
26

    
27
/**
28
 * <p>When an object of type {@link IPanelGroup IPanelGroup} tries to load panels, but
29
 *  can't load any of them finally, then launches an exception of this kind.</p> 
30
 * 
31
 * @version 27/11/2007
32
 * @author Pablo Piqueras Bartolom? (pablo.piqueras@iver.es) 
33
 */
34
public class EmptyPanelGroupException extends BaseException {
35
        private static final long serialVersionUID = -6903623253538826864L;
36

    
37
        /**
38
         * <p>Creates an initializes a new instance of <code>EmptyPanelGroupException</code>.</p>
39
         */
40
        public EmptyPanelGroupException() {
41
                super();
42

    
43
                // Identifier of this kind of exception
44
                this.code = serialVersionUID;
45
                
46
                // Default text that explains this kind of exception. If there is no translation associated to the
47
                // "messageKey" of this exception, then the value shown will be the value of "formatString".
48
                this.formatString = "'Panel group' component without panels loaded.";
49

    
50
                 // Key to the sentence that explains this exception. That key will be use for multilingual purposes.
51
                this.messageKey = "empty_panel_group_exception";
52
        }
53

    
54
        /*
55
         * (non-Javadoc)
56
         * @see org.gvsig.exceptions.BaseException#values()
57
         */
58
        protected Map values() {
59
                return null;
60
        }
61
}