Statistics
| Revision:

root / trunk / libraries / libGDBMS / src / main / java / com / hardcode / gdbms / driver / exceptions / SchemaEditionException.java @ 10627

History | View | Annotate | Download (612 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 SchemaEditionException extends BaseException {
9

    
10
        private String driver = null;
11

    
12
        public SchemaEditionException(String driver,Throwable exception) {
13
                this.driver = driver;
14
                init();
15
                initCause(exception);
16
        }
17

    
18
        private void init() {
19
                messageKey = "error_schema_driver";
20
                formatString = "Can?t edit schema of the driver: %(driver) ";
21
        }
22

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

    
29
}