ucar.units
Class SpecificationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by ucar.units.UnitException
              extended by ucar.units.SpecificationException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
NoSuchUnitException, UnitParseException

public class SpecificationException
extends UnitException

Provides support for errors in unit string specifications.

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

Constructor Summary
SpecificationException(String reason)
          Constructs from an error message.
SpecificationException(String spec, String reason)
          Constructs from the string to be parsed and an error message.
SpecificationException(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

SpecificationException

public SpecificationException(String reason)
Constructs from an error message.

Parameters:
reason - The error message.

SpecificationException

public SpecificationException(String spec,
                              String reason)
Constructs from the string to be parsed and an error message.

Parameters:
spec - The string to be parsed.
reason - The error message.

SpecificationException

public SpecificationException(String message,
                              Throwable e)


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