svn-gvsig-desktop / tags / J2ME_compat_v1_2_Build_1209 / libraries / libFMap / src / com / iver / cit / gvsig / exceptions / layers / LoadLayerException.java @ 19509
History | View | Annotate | Download (656 Bytes)
1 | 19509 | jcarrasco | 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 LoadLayerException extends BaseException { |
||
11 | private String layer = null; |
||
12 | |||
13 | public LoadLayerException(String layer,Throwable exception) { |
||
14 | this.layer = layer;
|
||
15 | init(); |
||
16 | initCause(exception); |
||
17 | } |
||
18 | |||
19 | private void init() { |
||
20 | messageKey = "error_load_layer";
|
||
21 | formatString = "Can?t load the layer: %(layer) ";
|
||
22 | } |
||
23 | |||
24 | protected Map values() { |
||
25 | Hashtable params = new Hashtable(); |
||
26 | params.put("layer",layer);
|
||
27 | return params;
|
||
28 | } |
||
29 | |||
30 | } |