Statistics
| Revision:

root / branches / v2_0_0_prep / applications / appgvSIG / src / org / gvsig / app / project / documents / table / exceptions / TableEditingException.java @ 31496

History | View | Annotate | Download (728 Bytes)

1
package org.gvsig.app.project.documents.table.exceptions;
2

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

    
6
import org.gvsig.tools.exception.BaseException;
7
/**
8
 * @author Vicente Caballero Navarro
9
 */
10
public class TableEditingException extends BaseException{
11
        /**
12
         * 
13
         */
14
        private static final long serialVersionUID = -3672330283934624242L;
15
        private String table;
16
        
17
        public TableEditingException(String table,Throwable exception) {
18
                this.table = table;
19
                init();
20
                initCause(exception);
21
        }
22

    
23
        private void init() {
24
                messageKey = "error_editing_table";
25
                formatString = "Can't edit the table: %(table) ";
26
        }
27

    
28
        protected Map values() {
29
                Hashtable params = new Hashtable();
30
                params.put("table",table);
31
                return params;
32
        }
33
}