Package ucar.units
Class UnitException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- ucar.units.UnitException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BaseQuantityException
,ConversionException
,NameException
,OperationException
,PrefixDBException
,QuantityExistsException
,SpecificationException
,UnitDBException
,UnitFormatException
,UnitSystemException
public abstract class UnitException extends Exception implements Serializable
Provides support for general failures of this package.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnitException()
Constructs from nothing.UnitException(String message)
Constructs from an error message.UnitException(String message, Exception e)
Constructs from a message and the exception that caused the failure.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
UnitException
public UnitException()
Constructs from nothing.
-
UnitException
public UnitException(String message)
Constructs from an error message.- Parameters:
message
- The error message.
-
-