Package ucar.units

Class 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 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.