Class UnconvertibleInstanceException

  • All Implemented Interfaces:
    java.io.Serializable

    public class UnconvertibleInstanceException
    extends Proj4jException
    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:
    Serialized Form
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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, or null
      • 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 unwrapped
        type - the type of the object that cannot be unwrapped