Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libTools / src / org / gvsig / tools / persistence / PersistenceException.java @ 28468

History | View | Annotate | Download (1.07 KB)

1
package org.gvsig.tools.persistence;
2

    
3
import java.util.HashMap;
4
import java.util.Map;
5

    
6
import org.gvsig.tools.exception.ListBaseException;
7

    
8
public class PersistenceException extends ListBaseException {
9
        private static final long serialVersionUID = -3729654883985281840L;
10
        private final static String MESSAGE_FORMAT = "Error getting or setting the state of the object.";
11
        private final static String MESSAGE_KEY = "_PersistenceException";
12

    
13
        protected Map values = new HashMap();
14

    
15
        public PersistenceException(String messageFormat) {
16
                super(messageFormat, MESSAGE_KEY, serialVersionUID);
17
        }
18

    
19
        public PersistenceException(Throwable cause) {
20
                this(MESSAGE_FORMAT, cause);
21
        }
22

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

    
31
        public PersistenceException(String messageFormat, Throwable cause) {
32
                super(messageFormat, cause, MESSAGE_KEY, serialVersionUID);
33
        }
34
}