ucar.units
Class UnitExistsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
ucar.units.UnitException
ucar.units.UnitDBException
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
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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.