Statistics
| Revision:

root / branches / v2_0_0_prep / libraries / libFMap_dal / src / org / gvsig / fmap / dal / exceptions / FileNotFoundException.java @ 24496

History | View | Annotate | Download (584 Bytes)

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

    
3
import java.io.File;
4

    
5
public class FileNotFoundException extends DataException {
6

    
7
        /**
8
         *
9
         */
10
        private static final long serialVersionUID = 8748874874719052534L;
11
        private final static String MESSAGE_FORMAT = "File '%(file)' not found.";
12
        private final static String MESSAGE_KEY = "_OpenException";
13

    
14
        public FileNotFoundException(String filePath) {
15
                super(MESSAGE_FORMAT, MESSAGE_KEY, serialVersionUID);
16
                setValue("file", filePath);
17
        }
18

    
19
        public FileNotFoundException(File file) {
20
                this(file.getAbsolutePath());
21
        }
22

    
23
}