Statistics
| Revision:

root / trunk / libraries / libFMap / src / com / iver / cit / gvsig / exceptions / layers / CancelEditingLayerException.java @ 10627

History | View | Annotate | Download (665 Bytes)

1
package com.iver.cit.gvsig.exceptions.layers;
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 CancelEditingLayerException extends BaseException {
11

    
12
        private String layer = null;
13

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

    
20
        private void init() {
21
                messageKey = "error_cancel_editing_layer";
22
                formatString = "Can?t cancel 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
}