Class UnconvertibleInstanceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.locationtech.proj4j.Proj4jException
org.locationtech.proj4j.geoapi.UnconvertibleInstanceException
- All Implemented Interfaces:
Serializable
Thrown by
Wrapper.proj4j(…) when a GeoAPI object cannot be unwrapped or copied to a PROJ4J implementation.
This exception is never thrown when the given GeoAPI object has been created by a Wrapper.geoapi(…) method.
This exception may be thrown for GeoAPI objects created by other libraries, depending on the characteristics of the
object. For example, it may depend on whether the coordinate system uses unsupported axis directions.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new exception with no message.UnconvertibleInstanceException(String message) Creates a new exception with the given message.UnconvertibleInstanceException(String name, String type) Creates a new exception with a message built for the given object name and type. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnconvertibleInstanceException
public UnconvertibleInstanceException()Creates a new exception with no message. -
UnconvertibleInstanceException
Creates a new exception with the given message.- Parameters:
message- the exception message, ornull
-
UnconvertibleInstanceException
-