Top Description Fields Constructors
org.apache.commons.math3.fraction

public Class FractionConversionException

extends ConvergenceException
Class Inheritance
Imports
org.apache.commons.math3.exception.ConvergenceException, org.apache.commons.math3.exception.util.LocalizedFormats

Error thrown when a double value cannot be converted to a fraction in the allowed number of iterations.
Since
1.2

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
FractionConversionException(double
double value to convert
value
,
int
maximal number of iterations allowed
maxIterations
)

Constructs an exception with specified formatted detail message.

public
FractionConversionException(double
double value to convert
value
,
long
current numerator
p
,
long
current denominator
q
)

Constructs an exception with specified formatted detail message.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.apache.commons.math3.exception.ConvergenceException.serialVersionUID.

Serializable version identifier.

Constructor Detail

FractionConversionExceptionback to summary
public FractionConversionException(double value, int maxIterations)

Constructs an exception with specified formatted detail message. Message formatting is delegated to java.text.MessageFormat.

Parameters
value:double

double value to convert

maxIterations:int

maximal number of iterations allowed

FractionConversionExceptionback to summary
public FractionConversionException(double value, long p, long q)

Constructs an exception with specified formatted detail message. Message formatting is delegated to java.text.MessageFormat.

Parameters
value:double

double value to convert

p:long

current numerator

q:long

current denominator