Package javax.measure

Class IncommensurableException

Object
Throwable
Exception
IncommensurableException
All Implemented Interfaces:
Serializable

public class IncommensurableException
extends Exception
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
Author:
Jean-Marie Dautelle, Werner Keil
See Also:
Wikipedia: Unit Commensurability, Serialized Form