Top Description Fields Constructors
javax.measure

public Class MeasurementException

extends RuntimeException
Class Inheritance
Known Direct Subclasses
javax.measure.UnconvertibleException, javax.measure.format.MeasurementParseException

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.

Implementation Requirements:
This class is intended for use in a single thread. Exception thrown when errors occur during Units of Measurement operations.
Author
Werner Keil
Since
1.0
Version
2.0, Jul 4, 2020

Field Summary

Modifier and TypeField and Description
private static final long
serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

For cross-version compatibility.

Constructor Summary

AccessConstructor and Description
public
MeasurementException(final String
the detail message, or null if none.
message
)

Constructs a MeasurementException with the given message.

public
MeasurementException(final Throwable
the cause of this exception, or null if none.
cause
)

Constructs a MeasurementException with the given cause.

public
MeasurementException(final String
the detail message, or null if none.
message
,
final Throwable
the cause of this exception, or null if none.
cause
)

Constructs a MeasurementException with the given message and cause.

protected
MeasurementException()

Constructs a MeasurementException with no given message.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

For cross-version compatibility.

Constructor Detail

MeasurementExceptionback to summary
public MeasurementException(final String message)

Constructs a MeasurementException with the given message.

Parameters
message:String

the detail message, or null if none.

MeasurementExceptionback to summary
public MeasurementException(final Throwable cause)

Constructs a MeasurementException with the given cause.

Parameters
cause:Throwable

the cause of this exception, or null if none.

MeasurementExceptionback to summary
public MeasurementException(final String message, final Throwable cause)

Constructs a MeasurementException with the given message and cause.

Parameters
message:String

the detail message, or null if none.

cause:Throwable

the cause of this exception, or null if none.

MeasurementExceptionback to summary
protected MeasurementException()

Constructs a MeasurementException with no given message.