ucar.units
Class UnitException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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.

Version:
$Id: UnitException.java 64 2006-07-12 22:30:50Z edavis $
Author:
Steven R. Emmerson
See Also:
Serialized Form

Constructor Summary
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
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnitException

public UnitException()
Constructs from nothing.


UnitException

public UnitException(String message)
Constructs from an error message.

Parameters:
message - The error message.

UnitException

public UnitException(String message,
                     Exception e)
Constructs from a message and the exception that caused the failure.

Parameters:
message - The message.
e - The exception that caused the failure.


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.