Package ucar.units
Class UnitParseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- ucar.units.UnitException
-
- ucar.units.SpecificationException
-
- ucar.units.UnitParseException
-
- All Implemented Interfaces:
Serializable
public class UnitParseException extends SpecificationException
Provides support for errors in unit specifications.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description 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
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
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.
-
-