Package 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.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description 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
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
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.
-
-