Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.api / src / main / java / org / gvsig / fmap / dal / exception / InitializeException.java @ 40435

History | View | Annotate | Download (977 Bytes)

1
package org.gvsig.fmap.dal.exception;
2

    
3

    
4
public class InitializeException extends DataException {
5

    
6
        /**
7
         *
8
         */
9
        private static final long serialVersionUID = -3054877505579218816L;
10
        private final static String MESSAGE_FORMAT = "Exception intializing '%(resource)'.";
11
        private final static String MESSAGE_KEY = "_InitializeException";
12

    
13
        public InitializeException(String resource, Throwable cause) {
14
                super(MESSAGE_FORMAT, cause, MESSAGE_KEY, serialVersionUID);
15
                setValue("resource", resource);
16
        }
17

    
18
        public InitializeException(Throwable cause) {
19
                super(MESSAGE_FORMAT, cause, MESSAGE_KEY, serialVersionUID);
20
                setValue("resource", "{unknow}");
21
        }
22

    
23
        protected InitializeException(String messageFormat, Throwable cause,
24
                        String messageKey, long code) {
25
                super(messageFormat, cause, messageKey, code);
26
        }
27

    
28
        protected InitializeException(String messageFormat, String messageKey,
29
                        long code) {
30
                super(messageFormat, messageKey, code);
31
        }
32

    
33
}