Revision 1034 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/ProjectionMismatchException.java

View differences:

ProjectionMismatchException.java
1
/* Generated by Together */
2

  
3 1
package com.iver.cit.gvsig.fmap.layers;
4 2

  
5 3
import com.iver.cit.gvsig.fmap.FMap;
6 4

  
7
public class ProjectionMismatchException extends Exception{
8
	
5

  
6
/**
7
 * Excepci?n provocada por la incompatibilidad de alguna proyecci?n.
8
 */
9
public class ProjectionMismatchException extends Exception {
9 10
	private FLayer layer;
10 11
	private FMap fmap;
11
	
12
	public ProjectionMismatchException(FLayer layer, FMap fmap){
12

  
13
	/**
14
	 * Crea un nuevo ProjectionMismatchException.
15
	 *
16
	 * @param layer
17
	 * @param fmap
18
	 */
19
	public ProjectionMismatchException(FLayer layer, FMap fmap) {
13 20
		this.layer = layer;
14 21
		this.fmap = fmap;
15 22
	}
16
	
17
    public FLayer getLayer() {
18
    	return layer;
19
    }
20 23

  
21
    public FMap getMap() {
22
    	return fmap;
23
    }
24
	/**
25
	 * Devuelve la capa sobre la que salta la excepci?n.
26
	 *
27
	 * @return Capa.
28
	 */
29
	public FLayer getLayer() {
30
		return layer;
31
	}
32

  
33
	/**
34
	 * Devuelve el FMap sobre el que ha saltado la excepci?n.
35
	 *
36
	 * @return FMap.
37
	 */
38
	public FMap getMap() {
39
		return fmap;
40
	}
24 41
}

Also available in: Unified diff