Package ucar.units
Class NoSuchUnitException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- ucar.units.UnitException
-
- ucar.units.SpecificationException
-
- ucar.units.NoSuchUnitException
-
- All Implemented Interfaces:
Serializable
public class NoSuchUnitException extends SpecificationException
Provides support for failure to find a unit.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NoSuchUnitException(String id)
Constructs from a unit identifier.NoSuchUnitException(UnitID id)
Constructs from a unit identifier.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
NoSuchUnitException
public NoSuchUnitException(UnitID id)
Constructs from a unit identifier.- Parameters:
id
- The identifier of the unit that couldn't be found.
-
NoSuchUnitException
public NoSuchUnitException(String id)
Constructs from a unit identifier.- Parameters:
id
- The identifier of the unit that couldn't be found.
-
-