Revision 264 org.gvsig.projection.jcrs/trunk/org.gvsig.projection.jcrs/org.gvsig.projection.jcrs.lib/src/main/java/org/gvsig/crs/proj/OperationCrsException.java

View differences:

OperationCrsException.java
41 41
package org.gvsig.crs.proj;
42 42

  
43 43
/**
44
 * 
44
 *
45 45
 * @author Miguel Garc?a Jim?nez (garciajimenez.miguel@gmail.com)
46 46
 *
47 47
 */
48 48
public class OperationCrsException extends Exception {
49 49
	/**
50
	 * 
50
	 *
51 51
	 */
52 52
	private static final long serialVersionUID = 1L;
53
	private String _strSrcCrs,_strDestCrs;
53
	private String _strSrcCrs, _strDestCrs;
54
	private int errno;
54 55

  
56
	public OperationCrsException(int errno, CrsProj srcCrs, CrsProj destCrs,
57
			String message) {
58
		super("Coordinate operation error: " + srcCrs.getStr() + " to "
59
				+ destCrs.getStr() + ": " + message);
60
		_strSrcCrs = srcCrs.getStr();
61
		_strDestCrs = destCrs.getStr();
62
		this.errno = errno;
63
	}
64

  
55 65
	public OperationCrsException(CrsProj srcCrs, CrsProj destCrs, String message) {
56
		super("Coordinate operation error: " + srcCrs.getStr() + " to " + destCrs.getStr() + ": " +message);
57
		_strSrcCrs=srcCrs.getStr();
58
		_strDestCrs=destCrs.getStr();
66
		this(0, srcCrs, destCrs, message);
59 67
	}
60
	
68

  
61 69
	public String getStrError() {
62
		return ("Error en operacion del CRS "+_strSrcCrs+" al CRS "+_strDestCrs);
70
		return ("Error en operacion del CRS " + _strSrcCrs + " al CRS " + _strDestCrs);
63 71
	}
72

  
73
	public int getErrno() {
74
		return errno;
75
	}
64 76
}

Also available in: Unified diff