Object
Throwable
Exception
RuntimeException
UnsupportedOperationException
NoUnitImplementationException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorDescriptionConstruct an exception with a default message saying that a JSR-385 implementation should be provided.NoUnitImplementationException
(String message) Constructs an exception with the specified detail message. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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
Constructs an exception with the specified detail message.- Parameters:
message
- the detail message, saved for later retrieval by theThrowable.getMessage()
method.
-