ucar.units
Class DivideException

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.DivideException
All Implemented Interfaces:
Serializable

public final class DivideException
extends OperationException

Provides support for unit division failures.

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

Constructor Summary
DivideException(Unit unit)
          Constructs from a unit that can't be divided.
DivideException(Unit numerator, Unit denominator)
          Constructs from dividend and divisor 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

DivideException

public DivideException(Unit unit)
Constructs from a unit that can't be divided.

Parameters:
unit - The unit that can't be divided.

DivideException

public DivideException(Unit numerator,
                       Unit denominator)
Constructs from dividend and divisor units.

Parameters:
numerator - The unit attempting to be divided.
denominator - The unit attempting to divide.


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