Class NoUnitImplementationException

All Implemented Interfaces:
Serializable

public class NoUnitImplementationException extends UnsupportedOperationException
Thrown when an unit operation is requested but no JSR-385 implementation is found on the classpath. The PROJ-JNI binding provides only very minimalist support of the Unit interface. For advanced operations such as units arithmetic, a JSR-385 implementation must be provided.
Since:
1.0
See Also:
  • Constructor Details

    • NoUnitImplementationException

      public NoUnitImplementationException()
      Construct an exception with a default message saying that a JSR-385 implementation should be provided. Default message is: "The PROJ-JNI binding provides only minimal support for Unit of Measurement operations. For more advanced operations, a JSR-385 implementation should be added to the classpath."
    • NoUnitImplementationException

      public NoUnitImplementationException(String message)
      Constructs an exception with the specified detail message.
      Parameters:
      message - the detail message, saved for later retrieval by the Throwable.getMessage() method.