Package javax.measure
Class UnconvertibleException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.measure.MeasurementException
-
- javax.measure.UnconvertibleException
-
- All Implemented Interfaces:
java.io.Serializable
public class UnconvertibleException extends MeasurementException
Signals that a problem of some sort has occurred due to the impossibility of constructing a converter between two units. For example, the multiplication of offset units are usually units not convertible to their system unit.- Version:
- 1.0, Aug 8, 2016
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
For cross-version compatibility.
-
Constructor Summary
Constructors Constructor Description UnconvertibleException(java.lang.String message)
Constructs aUnconvertibleException
with the given message.UnconvertibleException(java.lang.String message, java.lang.Throwable cause)
Constructs aUnconvertibleException
with the given message and cause.UnconvertibleException(java.lang.Throwable cause)
Constructs aUnconvertibleException
with the given cause.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
For cross-version compatibility.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UnconvertibleException
public UnconvertibleException(java.lang.String message)
Constructs aUnconvertibleException
with the given message.- Parameters:
message
- the detail message, ornull
if none.
-
UnconvertibleException
public UnconvertibleException(java.lang.Throwable cause)
Constructs aUnconvertibleException
with the given cause.- Parameters:
cause
- the cause of this exception, ornull
if none.
-
UnconvertibleException
public UnconvertibleException(java.lang.String message, java.lang.Throwable cause)
Constructs aUnconvertibleException
with the given message and cause.- Parameters:
message
- the detail message, ornull
if none.cause
- the cause of this exception, ornull
if none.
-
-