Package ucar.units
Class MultiplyException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- ucar.units.UnitException
-
- ucar.units.OperationException
-
- ucar.units.MultiplyException
-
- All Implemented Interfaces:
Serializable
public final class MultiplyException extends OperationException
Provides support for unit multiplication failures.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MultiplyException(double scale, Unit unit)
Constructs from a scale factor and a unit.MultiplyException(Unit unit)
Constructs from a unit that can't be multiplied.MultiplyException(Unit A, Unit B)
Constructs from two units.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
MultiplyException
public MultiplyException(Unit unit)
Constructs from a unit that can't be multiplied.- Parameters:
unit
- The unit that can't be multiplied.
-
MultiplyException
public MultiplyException(Unit A, Unit B)
Constructs from two units.- Parameters:
A
- A unit attempting to be multiplied.B
- The other unit attempting to be multiplied.
-
MultiplyException
public MultiplyException(double scale, Unit unit)
Constructs from a scale factor and a unit.- Parameters:
scale
- The scale factor.unit
- The unit.
-
-