Statistics
| Revision:

root / org.gvsig.proj / branches / refactor2018 / org.gvsig.proj / org.gvsig.proj.lib / org.gvsig.proj.lib.api / src / main / java / org / gvsig / proj / exception / DistanceCalculationException.java @ 827

History | View | Annotate | Download (1.1 KB)

1
package org.gvsig.proj.exception;
2

    
3
import org.gvsig.proj.catalog.exception.CoordinateReferenceSystemException;
4
import org.gvsig.proj.catalog.exception.TransformationException;
5

    
6
public class DistanceCalculationException extends CoordinateReferenceSystemException {
7

    
8
        private static final long serialVersionUID = -2896079619829560891L;
9
        protected Double test;
10

    
11
        private static final String MESSAGE =
12
        "Distance calculation is not supported for this CRS: %(code)";
13

    
14
    private static final String KEY = "_NoninvertibleTransformException";
15

    
16
    /**
17
     * Creates a new {@link TransformationException}.
18
     * 
19
     * @param cause
20
     *            the original cause
21
     */
22
    public DistanceCalculationException(String code) {
23
        super(MESSAGE, KEY, serialVersionUID);
24
        setValue("code", code);
25
    }
26

    
27
    /**
28
     * Creates a new {@link TransformationException}.
29
     * 
30
     * @param cause
31
     *            the original cause
32
     */
33
    public DistanceCalculationException(String code, Throwable cause) {
34
        super(MESSAGE, cause, KEY, serialVersionUID);
35
        setValue("code", code);
36
    }
37

    
38

    
39
}