Class TransformException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
NoninvertibleTransformException
public class TransformException extends Exception
Common superclass for a number of transformation-related exceptions.TransformException
are thrown byMathTransform
when a coordinate transformation can't be inverted (NoninvertibleTransformException
), when the derivative can't be computed or when a coordinate can't be transformed. It is also thrown whenCoordinateOperationFactory
fails to find a path between two coordinate reference systems.- Since:
- 1.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TransformException()
Constructs an exception with no detail message.TransformException(String message)
Constructs an exception with the specified detail message.TransformException(String message, Throwable cause)
Constructs an exception with the specified detail message and cause.TransformException(Throwable cause)
Constructs an exception with the specified cause.
-
Method Summary
Modifier and Type Method Description MathTransform
getLastCompletedTransform()
Returns the last transform that either transformed successfully all coordinates, or filled the untransformable coordinates with NaN values.void
setLastCompletedTransform(MathTransform transform)
Sets the last transform that either transformed successfully all coordinates, or filled the untransformable coordinates with NaN values.-
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
TransformException
public TransformException()
Constructs an exception with no detail message.
-
TransformException
public TransformException(String message)
Constructs an exception with the specified detail message.- Parameters:
message
- the detail message, saved for later retrieval by theThrowable.getMessage()
method.
-
TransformException
public TransformException(Throwable cause)
Constructs an exception with the specified cause.- Parameters:
cause
- the cause, saved for later retrieval by theThrowable.getCause()
method.- Since:
- 3.1
-
TransformException
public TransformException(String message, Throwable cause)
Constructs an exception with the specified detail message and cause.- Parameters:
message
- the detail message, saved for later retrieval by theThrowable.getMessage()
method.cause
- the cause, saved for later retrieval by theThrowable.getCause()
method.
-
-
Method Detail
-
getLastCompletedTransform
public MathTransform getLastCompletedTransform()
Returns the last transform that either transformed successfully all coordinates, or filled the untransformable coordinates with NaN values. This information is useful in the context of concatenated transforms. May benull
if unknown.- Returns:
- the last reliable transform.
-
setLastCompletedTransform
public void setLastCompletedTransform(MathTransform transform)
Sets the last transform that either transformed successfully all coordinates, or filled the untransformable coordinates with NaN values.- Parameters:
transform
- the last reliable transform.
-
-