Package javax.measure

Class MeasurementError

  • All Implemented Interfaces:
    java.io.Serializable

    public class MeasurementError
    extends java.lang.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:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      MeasurementError()
      Constructs a MeasurementError with no detail message.
      MeasurementError​(java.lang.String message)
      Constructs a MeasurementError with the specified detail message.
      MeasurementError​(java.lang.String message, java.lang.Throwable cause)
      Constructs a MeasurementError with the specified detail message and cause.
      MeasurementError​(java.lang.Throwable cause)
      Constructs a MeasurementError with 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MeasurementError

        public MeasurementError()
        Constructs a MeasurementError with no detail message.
      • MeasurementError

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

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

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