Package javax.measure
Class MeasurementError
java.lang.Object
java.lang.Throwable
java.lang.Error
javax.measure.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
ConstructorsConstructorDescriptionConstructs aMeasurementErrorwith no detail message.MeasurementError(String message) Constructs aMeasurementErrorwith the specified detail message.MeasurementError(String message, Throwable cause) Constructs aMeasurementErrorwith the specified detail message and cause.MeasurementError(Throwable cause) Constructs aMeasurementErrorwith 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
-
Constructor Details
-
MeasurementError
public MeasurementError()Constructs aMeasurementErrorwith no detail message. -
MeasurementError
Constructs aMeasurementErrorwith the specified detail message.- Parameters:
message- the detail message.
-
MeasurementError
Constructs aMeasurementErrorwith the given cause.- Parameters:
cause- the cause of this exception, ornullif none.
-
MeasurementError
Constructs aMeasurementErrorwith the specified detail message and cause.- Parameters:
message- the detail message.cause- the cause, may benull
-