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 / FileNotFoundException.java @ 40435

History | View | Annotate | Download (583 Bytes)

1 40435 jjdelcerro
package org.gvsig.fmap.dal.exception;
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
}