Package javax.measure

Class 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 a UnconvertibleException with the given message.
      UnconvertibleException​(java.lang.String message, java.lang.Throwable cause)
      Constructs a UnconvertibleException with the given message and cause.
      UnconvertibleException​(java.lang.Throwable cause)
      Constructs a UnconvertibleException 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
    • 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 a UnconvertibleException with the given message.
        Parameters:
        message - the detail message, or null if none.
      • UnconvertibleException

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

        public UnconvertibleException​(java.lang.String message,
                                      java.lang.Throwable cause)
        Constructs a UnconvertibleException 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.