Statistics
| Revision:

root / trunk / libraries / libFMap / src / com / iver / cit / gvsig / exceptions / commands / EditionCommandException.java @ 10627

History | View | Annotate | Download (655 Bytes)

1
package com.iver.cit.gvsig.exceptions.commands;
2

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

    
6
import org.gvsig.exceptions.BaseException;
7
/**
8
 * @author Vicente Caballero Navarro
9
 */
10
public class EditionCommandException extends BaseException {
11

    
12
        private String layer = null;
13

    
14
        public EditionCommandException(String layer,Throwable exception) {
15
                this.layer = layer;
16
                init();
17
                initCause(exception);
18
        }
19

    
20
        private void init() {
21
                messageKey = "error_command_editing";
22
                formatString = "Can?t command editing the layer: %(layer) ";
23
        }
24

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

    
31
}