Package org.apache.commons.math
Class MaxIterationsExceededException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.commons.math.MathException
org.apache.commons.math.ConvergenceException
org.apache.commons.math.MaxIterationsExceededException
- All Implemented Interfaces:
Serializable
,MathThrowable
Error thrown when a numerical computation exceeds its allowed
number of iterations.
- Since:
- 1.2
- Version:
- $Revision: 1070725 $ $Date: 2011-02-15 02:31:12 +0100 (mar. 15 févr. 2011) $
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMaxIterationsExceededException
(int maxIterations) Constructs an exception with a default detail message.MaxIterationsExceededException
(int maxIterations, String pattern, Object... arguments) Deprecated.MaxIterationsExceededException
(int maxIterations, Localizable pattern, Object... arguments) Constructs an exception with specified formatted detail message. -
Method Summary
Modifier and TypeMethodDescriptionint
Get the maximal number of iterations 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
-
MaxIterationsExceededException
public MaxIterationsExceededException(int maxIterations) Constructs an exception with a default detail message.- Parameters:
maxIterations
- maximal number of iterations allowed
-
MaxIterationsExceededException
@Deprecated public MaxIterationsExceededException(int maxIterations, String pattern, Object... arguments) Deprecated.as of 2.2 replaced byMaxIterationsExceededException(int, Localizable, Object...)
Constructs an exception with specified formatted detail message. Message formatting is delegated toMessageFormat
.- Parameters:
maxIterations
- the exceeded maximal number of iterationspattern
- format specifierarguments
- format arguments
-
MaxIterationsExceededException
Constructs an exception with specified formatted detail message. Message formatting is delegated toMessageFormat
.- Parameters:
maxIterations
- the exceeded maximal number of iterationspattern
- format specifierarguments
- format arguments- Since:
- 2.2
-
-
Method Details
-
getMaxIterations
public int getMaxIterations()Get the maximal number of iterations allowed.- Returns:
- maximal number of iterations allowed
-
MaxIterationsExceededException(int, Localizable, Object...)