Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libFMap_dataFile / src / org / gvsig / fmap / data / feature / file / RemoveFileException.java @ 22373

History | View | Annotate | Download (840 Bytes)

1
package org.gvsig.fmap.data.feature.file;
2

    
3
import java.util.Map;
4

    
5
import org.gvsig.fmap.data.ReadException;
6

    
7
public class RemoveFileException extends ReadException{
8

    
9
        private String file="";
10
        public RemoveFileException(String l,String file,Throwable exception) {
11
                super(l,exception);
12
                this.file=file;
13
                init();
14
        }
15
        public RemoveFileException(String file,Throwable exception) {
16
                super("FileAccess",exception);
17
                this.file=file;
18
                init();
19
        }
20

    
21
        public RemoveFileException(String file) {
22
                super("can't remove file","FileAccess");
23
                this.file=file;
24
                init();
25
        }
26

    
27
        /**
28
         *
29
         */
30
        protected void init() {
31
                messageKey = "error_file_not_found";
32
                formatString = "Can't remove file: "+file;
33
        }
34

    
35
        protected Map values() {
36
                Map params = super.values();
37
                params.put("file",this.file);
38
                return params;
39
        }
40
}