ucar.units
Class ShiftException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by ucar.units.UnitException
              extended by ucar.units.OperationException
                  extended by ucar.units.ShiftException
All Implemented Interfaces:
Serializable

public final class ShiftException
extends OperationException

Provides support for failure to raise a unit to a power.

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

Constructor Summary
ShiftException(Unit unit, Date origin)
          Constructs from the unit and the origin.
ShiftException(Unit unit, double origin)
          Constructs from the unit and the origin.
 
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

ShiftException

public ShiftException(Unit unit,
                      double origin)
Constructs from the unit and the origin.

Parameters:
unit - The unit.
origin - The desired origin.

ShiftException

public ShiftException(Unit unit,
                      Date origin)
Constructs from the unit and the origin.

Parameters:
unit - The unit.
origin - The desired origin.


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