|
||||||||||
| 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.FunctionEvaluationException
public class FunctionEvaluationException
Exeption thrown when an error occurs evaluating a function.
Maintains an argument property holding the input value that
caused the function evaluation to fail.
| Field Summary | |
|---|---|
private double |
argument
Argument causing function evaluation failure |
private static long |
serialVersionUID
Serializable version identifier |
| Constructor Summary | |
|---|---|
FunctionEvaluationException(double argument)
Construct an exception indicating the argument value that caused the function evaluation to fail. |
|
FunctionEvaluationException(double argument,
java.lang.String message)
Construct an exception using the given argument and message text. |
|
FunctionEvaluationException(double argument,
java.lang.String message,
java.lang.Throwable cause)
Construct an exception with the given argument, message and root cause. |
|
| Method Summary | |
|---|---|
double |
getArgument()
Returns the function argument that caused this exception. |
| Methods inherited from class org.apache.commons.math.MathException |
|---|
getCause, printStackTrace, printStackTrace, printStackTrace |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private double argument
| Constructor Detail |
|---|
public FunctionEvaluationException(double argument)
argument - the failing function argument
public FunctionEvaluationException(double argument,
java.lang.String message)
message and be followed by
" Evaluation failed for argument = " + argument.
argument - the failing function argumentmessage - the exception message text
public FunctionEvaluationException(double argument,
java.lang.String message,
java.lang.Throwable cause)
message
and be followed by " Evaluation failed for argument = " + argument.
argument - the failing function argumentmessage - descriptive error messagecause - root cause.| Method Detail |
|---|
public double getArgument()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||