ucar.units
Class MultiplyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by ucar.units.UnitException
              extended by ucar.units.OperationException
                  extended by ucar.units.MultiplyException
All Implemented Interfaces:
Serializable

public final class MultiplyException
extends OperationException

Provides support for unit multiplication failures.

Version:
$Id: MultiplyException.java 64 2006-07-12 22:30:50Z edavis $
Author:
Steven R. Emmerson
See Also:
Serialized Form

Constructor Summary
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
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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.


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.