Class FractionConversionException

All Implemented Interfaces:
Serializable, MathThrowable

public class FractionConversionException extends ConvergenceException
Error thrown when a double value cannot be converted to a fraction in the allowed number of iterations.
Since:
1.2
Version:
$Revision: 983921 $ $Date: 2010-08-10 12:46:06 +0200 (mar. 10 août 2010) $
See Also:
  • Constructor Details

    • 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