Package org.locationtech.proj4j.geoapi
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:
java.io.Serializable
public class UnconvertibleInstanceException extends Proj4jException
Thrown byWrapper.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 aWrapper.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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnconvertibleInstanceException()
Creates a new exception with no message.UnconvertibleInstanceException(java.lang.String message)
Creates a new exception with the given message.UnconvertibleInstanceException(java.lang.String name, java.lang.String type)
Creates a new exception with a message built for the given object name and type.
-
-
-
Constructor Detail
-
UnconvertibleInstanceException
public UnconvertibleInstanceException()
Creates a new exception with no message.
-
UnconvertibleInstanceException
public UnconvertibleInstanceException(java.lang.String message)
Creates a new exception with the given message.- Parameters:
message
- the exception message, ornull
-
UnconvertibleInstanceException
UnconvertibleInstanceException(java.lang.String name, java.lang.String type)
Creates a new exception with a message built for the given object name and type.- Parameters:
name
- the name of the object that cannot be unwrappedtype
- the type of the object that cannot be unwrapped
-
-