Class MaxIterationsExceededException

  • All Implemented Interfaces:
    java.io.Serializable, MathThrowable

    public class MaxIterationsExceededException
    extends ConvergenceException
    Error thrown when a numerical computation exceeds its allowed number of iterations.
    Since:
    1.2
    See Also:
    Serialized Form
    • Constructor Detail

      • 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,
                                              java.lang.String pattern,
                                              java.lang.Object... arguments)
        Constructs an exception with specified formatted detail message. Message formatting is delegated to MessageFormat.
        Parameters:
        maxIterations - the exceeded maximal number of iterations
        pattern - format specifier
        arguments - format arguments
      • MaxIterationsExceededException

        public MaxIterationsExceededException​(int maxIterations,
                                              Localizable pattern,
                                              java.lang.Object... arguments)
        Constructs an exception with specified formatted detail message. Message formatting is delegated to MessageFormat.
        Parameters:
        maxIterations - the exceeded maximal number of iterations
        pattern - format specifier
        arguments - format arguments
        Since:
        2.2
    • Method Detail

      • getMaxIterations

        public int getMaxIterations()
        Get the maximal number of iterations allowed.
        Returns:
        maximal number of iterations allowed