Package javax.measure
Class MeasurementException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.measure.MeasurementException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ParserException
,UnconvertibleException
public class MeasurementException extends java.lang.RuntimeException
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
For cross-version compatibility.
-
Constructor Summary
Constructors Modifier Constructor Description protected
MeasurementException()
Constructs aMeasurementException
with no given message.MeasurementException(java.lang.String message)
Constructs aMeasurementException
with the given message.MeasurementException(java.lang.String message, java.lang.Throwable cause)
Constructs aMeasurementException
with the given message and cause.MeasurementException(java.lang.Throwable cause)
Constructs aMeasurementException
with the given cause.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
For cross-version compatibility.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MeasurementException
public MeasurementException(java.lang.String message)
Constructs aMeasurementException
with the given message.- Parameters:
message
- the detail message, ornull
if none.
-
MeasurementException
public MeasurementException(java.lang.Throwable cause)
Constructs aMeasurementException
with the given cause.- Parameters:
cause
- the cause of this exception, ornull
if none.
-
MeasurementException
public MeasurementException(java.lang.String message, java.lang.Throwable cause)
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.
-
-