ucar.units
Class UnitExistsException

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

public class UnitExistsException
extends UnitDBException

Provides support for failures due to attempts to redefine an existing unit in a unit database.

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

Constructor Summary
UnitExistsException(String msg)
          Constructs from an error message.
UnitExistsException(Unit oldUnit, Unit newUnit)
          Constructs from the existing unit and the redefining 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

UnitExistsException

public UnitExistsException(Unit oldUnit,
                           Unit newUnit)
Constructs from the existing unit and the redefining unit.

Parameters:
oldUnit - The previously existing unit in the database.
newUnit - The unit attempting the redefinition.

UnitExistsException

public UnitExistsException(String msg)
Constructs from an error message.

Parameters:
msg - The error message.


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