Class IncommensurableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.measure.IncommensurableException
- All Implemented Interfaces:
Serializable
Signals that a problem of some sort has occurred due to incommensurable of some quantities/units. Only commensurable quantity (quantities with the
same dimensions) may be compared, equated, added, or subtracted. Also, one unit can be converted to another unit only if both units are
commensurable.
This is a checked exception, so it deliberately doesn't inherit from MeasurementException like most other exceptions.
- Since:
- 1.0
- Version:
- 1.0, August 8, 2016
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longFor cross-version compatibility. -
Constructor Summary
ConstructorsConstructorDescriptionIncommensurableException(String message) Constructs aIncommensurableExceptionwith the given message.IncommensurableException(String message, Throwable cause) Constructs aIncommensurableExceptionwith the given message and cause.Constructs aIncommensurableExceptionwith the given cause. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility.- See Also:
-
-
Constructor Details
-
IncommensurableException
Constructs aIncommensurableExceptionwith the given message.- Parameters:
message- the detail message, ornullif none.
-
IncommensurableException
Constructs aIncommensurableExceptionwith the given cause.- Parameters:
cause- the cause of this exception, ornullif none.
-
IncommensurableException
-