Statistics
| Revision:

root / branches / Mobile_Compatible_Hito_1 / libFMap_data / src / org / gvsig / data / ReadException.java @ 21563

History | View | Annotate | Download (834 Bytes)

1
package org.gvsig.data;
2

    
3
import java.util.Map;
4

    
5

    
6
public class ReadException extends DataException {
7

    
8

    
9
        private String name = "{unknow}";
10

    
11
        public ReadException(String description, String name) {
12
                super(description);
13
                this.name = name;
14
                init();
15
        }
16

    
17
        public ReadException(String description, String name,Throwable exception) {
18
                super(description);
19
                this.name = name;
20
                init();
21
                initCause(exception);
22
        }
23

    
24
        public ReadException(String name,Throwable exception) {
25
                super("Error reading");
26
                this.name = name;
27
                init();
28
                initCause(exception);
29
        }
30

    
31
        protected void init() {
32
                super.init();
33
                messageKey = "error_read";
34
                formatString = "Can?t read %(name): %(description) ";
35
        }
36

    
37
        protected Map values() {
38
                Map params = super.values();
39
                params.put("name",this.name);
40
                return params;
41
        }
42

    
43
}