ucar.units
Class ConversionException

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

public final class ConversionException
extends UnitException
implements Serializable

Provides support for unit conversion exceptions.

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

Constructor Summary
ConversionException()
          Constructs from nothing.
ConversionException(Unit fromUnit, Unit toUnit)
          Constructs from a "from" unit and and "to" unit.
 
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

ConversionException

public ConversionException()
Constructs from nothing.


ConversionException

public ConversionException(Unit fromUnit,
                           Unit toUnit)
Constructs from a "from" unit and and "to" unit.

Parameters:
fromUnit - The unit from which a conversion was attempted.
toUnit - The unit to which a conversion was attempted.


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