Package javax.measure
Class MeasurementException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.measure.MeasurementException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ParserException
,UnconvertibleException
Exception used to indicate a problem while dealing with units of measurement.
This exception is used to indicate problems with creating, retrieving and manipulating units of measurement objects.
- Since:
- 1.0
- Version:
- 1.0, Aug 8, 2016
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
For cross-version compatibility. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Constructs aMeasurementException
with no given message.MeasurementException
(String message) Constructs aMeasurementException
with the given message.MeasurementException
(String message, Throwable cause) Constructs aMeasurementException
with the given message and cause.MeasurementException
(Throwable cause) Constructs aMeasurementException
with the given cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility.- See Also:
-
-
Constructor Details
-
MeasurementException
Constructs aMeasurementException
with the given message.- Parameters:
message
- the detail message, ornull
if none.
-
MeasurementException
Constructs aMeasurementException
with the given cause.- Parameters:
cause
- the cause of this exception, ornull
if none.
-
MeasurementException
Constructs aMeasurementException
with the given message and cause.- Parameters:
message
- the detail message, ornull
if none.cause
- the cause of this exception, ornull
if none.
-
MeasurementException
protected MeasurementException()Constructs aMeasurementException
with no given message.
-