Package tech.units.indriya
Class MeasurementError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Error
-
- tech.units.indriya.MeasurementError
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TokenMgrError
public class MeasurementError extends Error
This error is used to indicate problems with creating, retrieving and manipulating units of measurement objects. implSpec This class is intended for use in a single thread. Exception thrown when errors occur during Units of Measurement operations.- Since:
- 2.0.2
- Version:
- 1.0, Jan 11, 2020
- Author:
- Werner Keil
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MeasurementError()Constructs aMeasurementErrorwith no detail message.MeasurementError(String s)Constructs aMeasurementErrorwith the specified detail message.MeasurementError(String s, Throwable cause)Constructs aMeasurementErrorwith the specified detail message and cause.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
MeasurementError
public MeasurementError()
Constructs aMeasurementErrorwith no detail message.
-
MeasurementError
public MeasurementError(String s)
Constructs aMeasurementErrorwith the specified detail message.- Parameters:
s- the detail message.
-
MeasurementError
public MeasurementError(String s, Throwable cause)
Constructs aMeasurementErrorwith the specified detail message and cause.- Parameters:
s- the detail message.cause- the cause, may benull
-
-