org.deegree.cs.exceptions
Class TransformationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.deegree.cs.exceptions.TransformationException
- All Implemented Interfaces:
- Serializable
public class TransformationException
- extends Exception
The TransformationException
class can be thrown if a transformation exception occurs. For example in the
process of creating a transformation step.
- Version:
- $Revision: 29642 $, $Date: 2011-02-11 13:59:33 +0100 (Fri, 11 Feb 2011) $
- Author:
- Rutger Bezema, last edited by: $Author: lbuesching $
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
TransformationException
public TransformationException(int numberOfCoordinates)
- Initializes the error message map with the given size.
- Parameters:
numberOfCoordinates
- in the list of coordinates which will be transformed.
TransformationException
public TransformationException(String message)
- Parameters:
message
-
TransformationException
public TransformationException(Throwable cause)
- Parameters:
cause
-
TransformationException
public TransformationException(String message,
Throwable cause)
- Parameters:
message
- cause
-
TransformationException
public TransformationException(ICRS sourceCS,
ICRS targetCS,
String cause)
- Parameters:
sourceCS
- from which crstargetCS
- to which crscause
- for the exception.
getTransformErrors
public final Map<Integer,String> getTransformErrors()
- Returns:
- the transformErrors may be empty but will never be
null
.
setTransformError
public final void setTransformError(int coordinateNumber,
String errorMessage)
- Parameters:
coordinateNumber
- the position of the coordinate-tuple/triple which were responsible for the transformationexception.errorMessage
- the error message for given coordinate pair (in the array of coordinates).
getTransformedPoints
public final List<javax.vecmath.Point3d> getTransformedPoints()
- Returns:
- the transformedPoints, which are the points that were (successfully or unsuccessfully) transformed or
null
if no points were set.
setTransformedPoints
public final void setTransformedPoints(List<javax.vecmath.Point3d> transformedPoints)
- Parameters:
transformedPoints
- which were (successfully or unsuccessfully) transformed until the exception(s) occurred.
Copyright © 2011. All Rights Reserved.