org.apache.commons.math.fraction
Class FractionConversionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
org.apache.commons.math.exception.MathIllegalStateException
org.apache.commons.math.exception.ConvergenceException
org.apache.commons.math.fraction.FractionConversionException
- All Implemented Interfaces:
- java.io.Serializable, ExceptionContextProvider
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:
- $Id: FractionConversionException.java 1177986 2011-10-01 14:16:50Z luc $
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 convertmaxIterations - 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 convertp - current numeratorq - current denominator
Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.