|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.apache.commons.math.MathException
org.apache.commons.math.ConvergenceException
org.apache.commons.math.fraction.FractionConversionException
public class FractionConversionException
Error thrown when a double value cannot be converted to a fraction in the allowed number of iterations.
| Constructor Summary | |
|---|---|
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 org.apache.commons.math.MathException |
|---|
getArguments, getLocalizedMessage, getMessage, getPattern, printStackTrace, printStackTrace |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FractionConversionException(double value,
int maxIterations)
MessageFormat.
value - double value to convertmaxIterations - maximal number of iterations allowed
public FractionConversionException(double value,
long p,
long q)
MessageFormat.
value - double value to convertp - current numeratorq - current denominator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||