Class FractionConversionException

    • Constructor Summary

      Constructors 
      Constructor Description
      FractionConversionException​(double value, int maxIterations)
      Constructs an exception with specified formatted detail message.
      FractionConversionException​(double value, long p, long q)
      Constructs an exception with specified formatted detail message.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, 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

      • FractionConversionException

        public FractionConversionException​(double value,
                                           int maxIterations)
        Constructs an exception with specified formatted detail message. Message formatting is delegated to MessageFormat.
        Parameters:
        value - double value to convert
        maxIterations - maximal number of iterations allowed
      • FractionConversionException

        public FractionConversionException​(double value,
                                           long p,
                                           long q)
        Constructs an exception with specified formatted detail message. Message formatting is delegated to MessageFormat.
        Parameters:
        value - double value to convert
        p - current numerator
        q - current denominator