Statistics
| Revision:

root / trunk / libraries / libGDBMS / src / main / java / com / hardcode / gdbms / driver / exceptions / ReadDriverException.java @ 26755

History | View | Annotate | Download (625 Bytes)

1
package com.hardcode.gdbms.driver.exceptions;
2

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

    
6
import org.gvsig.exceptions.BaseException;
7

    
8
public class ReadDriverException extends BaseException {
9

    
10
        private String driver = null;
11

    
12
        public ReadDriverException(String driver,Throwable exception) {
13
                this.driver = driver;
14
                init();
15
                if (exception != null){
16
                        initCause(exception);
17
                }
18
        }
19

    
20
        private void init() {
21
                messageKey = "error_read_driver";
22
                formatString = "Can?t read the driver: %(driver) ";
23
        }
24

    
25
        protected Map values() {
26
                Hashtable params = new Hashtable();
27
                params.put("driver",driver);
28
                return params;
29
        }
30

    
31
}