Package 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.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description 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
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
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.
-
-