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:
MeasurementParseException,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.
- Implementation Requirements:
- This class is intended for use in a single thread. Exception thrown when errors occur during Units of Measurement operations.
- Since:
- 1.0
- Version:
- 2.0, Jul 4, 2020
- Author:
- Werner Keil
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMeasurementException()Constructs aMeasurementExceptionwith no given message.MeasurementException(java.lang.String message)Constructs aMeasurementExceptionwith the given message.MeasurementException(java.lang.String message, java.lang.Throwable cause)Constructs aMeasurementExceptionwith the given message and cause.MeasurementException(java.lang.Throwable cause)Constructs aMeasurementExceptionwith the given cause.
-
-
-
Constructor Detail
-
MeasurementException
public MeasurementException(java.lang.String message)
Constructs aMeasurementExceptionwith the given message.- Parameters:
message- the detail message, ornullif none.
-
MeasurementException
public MeasurementException(java.lang.Throwable cause)
Constructs aMeasurementExceptionwith the given cause.- Parameters:
cause- the cause of this exception, ornullif none.
-
MeasurementException
public MeasurementException(java.lang.String message, java.lang.Throwable cause)
Constructs aMeasurementExceptionwith the given message and cause.- Parameters:
message- the detail message, ornullif none.cause- the cause of this exception, ornullif none.
-
MeasurementException
protected MeasurementException()
Constructs aMeasurementExceptionwith no given message.
-
-