ucar.units
Class SpecificationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
ucar.units.UnitException
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
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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.