Package org.apache.commons.math
Class MaxEvaluationsExceededException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.commons.math.MathException
org.apache.commons.math.ConvergenceException
org.apache.commons.math.MaxEvaluationsExceededException
- All Implemented Interfaces:
Serializable
,MathThrowable
Error thrown when a numerical computation exceeds its allowed
number of functions evaluations.
- Since:
- 2.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMaxEvaluationsExceededException
(int maxEvaluations) Constructs an exception with a default detail message.MaxEvaluationsExceededException
(int maxEvaluations, String pattern, Object... arguments) Deprecated.MaxEvaluationsExceededException
(int maxEvaluations, Localizable pattern, Object... arguments) Constructs an exception with specified formatted detail message. -
Method Summary
Modifier and TypeMethodDescriptionint
Get the maximal number of evaluations allowed.Methods inherited from class org.apache.commons.math.MathException
getArguments, getGeneralPattern, getLocalizedMessage, getMessage, getMessage, getPattern, getSpecificPattern, printStackTrace, printStackTrace
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MaxEvaluationsExceededException
public MaxEvaluationsExceededException(int maxEvaluations) Constructs an exception with a default detail message.- Parameters:
maxEvaluations
- maximal number of evaluations allowed
-
MaxEvaluationsExceededException
@Deprecated public MaxEvaluationsExceededException(int maxEvaluations, String pattern, Object... arguments) Deprecated.as of 2.2 replaced byMaxEvaluationsExceededException(int, Localizable, Object...)
Constructs an exception with specified formatted detail message. Message formatting is delegated toMessageFormat
.- Parameters:
maxEvaluations
- the exceeded maximal number of evaluationspattern
- format specifierarguments
- format arguments
-
MaxEvaluationsExceededException
public MaxEvaluationsExceededException(int maxEvaluations, Localizable pattern, Object... arguments) Constructs an exception with specified formatted detail message. Message formatting is delegated toMessageFormat
.- Parameters:
maxEvaluations
- the exceeded maximal number of evaluationspattern
- format specifierarguments
- format arguments- Since:
- 2.2
-
-
Method Details
-
getMaxEvaluations
public int getMaxEvaluations()Get the maximal number of evaluations allowed.- Returns:
- maximal number of evaluations allowed
-
MaxEvaluationsExceededException(int, Localizable, Object...)