Package javax.measure

Class MeasurementException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ParserException, UnconvertibleException

public class MeasurementException extends RuntimeException
Exception used to indicate a problem while dealing with units of measurement.

This exception is used to indicate problems with creating, retrieving and manipulating units of measurement objects.

Since:
1.0
Version:
1.0, Aug 8, 2016
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      For cross-version compatibility.
      See Also:
  • Constructor Details

    • MeasurementException

      public MeasurementException(String message)
      Constructs a MeasurementException with the given message.
      Parameters:
      message - the detail message, or null if none.
    • MeasurementException

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

      public MeasurementException(String message, Throwable cause)
      Constructs a MeasurementException with the given message and cause.
      Parameters:
      message - the detail message, or null if none.
      cause - the cause of this exception, or null if none.
    • MeasurementException

      protected MeasurementException()
      Constructs a MeasurementException with no given message.