Package javax.measure

Class MeasurementError

java.lang.Object
java.lang.Throwable
java.lang.Error
javax.measure.MeasurementError
All Implemented Interfaces:
Serializable

public class MeasurementError extends Error
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 Details

    • MeasurementError

      Constructs a MeasurementError with no detail message.
    • MeasurementError

      public MeasurementError(String message)
      Constructs a MeasurementError with the specified detail message.
      Parameters:
      message - the detail message.
    • MeasurementError

      public MeasurementError(Throwable cause)
      Constructs a MeasurementError with the given cause.
      Parameters:
      cause - the cause of this exception, or null if none.
    • MeasurementError

      public MeasurementError(String message, Throwable cause)
      Constructs a MeasurementError with the specified detail message and cause.
      Parameters:
      message - the detail message.
      cause - the cause, may be null