ucar.units
Class UnitParseException

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

public class UnitParseException
extends SpecificationException

Provides support for errors in unit specifications.

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

Constructor Summary
UnitParseException(String reason)
          Constructs from a reason.
UnitParseException(String spec, String reason)
          Constructs from the string to be parsed and a reason.
UnitParseException(String message, Throwable e)
           
 
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

UnitParseException

public UnitParseException(String reason)
Constructs from a reason.

Parameters:
reason - The reason for the failure.

UnitParseException

public UnitParseException(String spec,
                          String reason)
Constructs from the string to be parsed and a reason.

Parameters:
spec - The string to be parsed.
reason - The reason for the failure.

UnitParseException

public UnitParseException(String message,
                          Throwable e)


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