Package javax.measure
Class MeasurementError
- All Implemented Interfaces:
Serializable
This error is used to indicate serious 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:
- 2.1
- Version:
- 2.2, Feb 3, 2021
- Author:
- Werner Keil
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructs aMeasurementError
with no detail message.MeasurementError
(String message) Constructs aMeasurementError
with the specified detail message.MeasurementError
(String message, Throwable cause) Constructs aMeasurementError
with the specified detail message and cause.MeasurementError
(Throwable cause) Constructs aMeasurementError
with the given cause. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MeasurementError
public MeasurementError()Constructs aMeasurementError
with no detail message. -
MeasurementError
Constructs aMeasurementError
with the specified detail message.- Parameters:
message
- the detail message.
-
MeasurementError
Constructs aMeasurementError
with the given cause.- Parameters:
cause
- the cause of this exception, ornull
if none.
-
MeasurementError
Constructs aMeasurementError
with the specified detail message and cause.- Parameters:
message
- the detail message.cause
- the cause, may benull
-