Class TransformException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.opengis.referencing.operation.TransformException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
NoninvertibleTransformException
Common superclass for a number of transformation-related exceptions.
TransformException
are thrown by MathTransform
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 when CoordinateOperationFactory
fails to find a path between two
coordinate reference systems.- Since:
- 1.0
- Version:
- 3.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate MathTransform
The last transform that either transformed successfully all coordinates, or filled the untransformable coordinates with NaN values.private static final long
Serial number for inter-operability with different versions. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs 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. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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 java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerial number for inter-operability with different versions.- See Also:
-
lastCompletedTransform
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.- Since:
- 2.2
- See Also:
-
-
Constructor Details
-
TransformException
public TransformException()Constructs an exception with no detail message. -
TransformException
Constructs an exception with the specified detail message.- Parameters:
message
- The detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.
-
TransformException
Constructs an exception with the specified detail message and cause.- Parameters:
message
- The detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.cause
- The cause for this exception. The cause is saved for later retrieval by theThrowable.getCause()
method.
-
-
Method Details
-
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.
- Since:
- 2.2
-
setLastCompletedTransform
Sets the last transform that either transformed successfully all coordinates, or filled the untransformable coordinates with NaN values.- Parameters:
transform
- The last reliable transform.- Since:
- 2.2
-