# Package org.apache.commons.math3.exception

package org.apache.commons.math3.exception
Specialized exceptions for algorithms errors. The exceptions can be localized using simple java properties.

Related Packages
Package
Description
org.apache.commons.math3
Common classes used throughout the commons-math library.
org.apache.commons.math3.exception.util
Classes supporting exception localization.
Exception Classes
Class
Description
ConvergenceException
Error thrown when a numerical computation can not be performed because the numerical result failed to converge to a finite value.
DimensionMismatchException
Exception to be thrown when two dimensions differ.
InsufficientDataException
Exception to be thrown when there is insufficient data to perform a computation.
MathArithmeticException
Base class for arithmetic exceptions.
MathIllegalArgumentException
Base class for all preconditions violation exceptions.
MathIllegalNumberException
Base class for exceptions raised by a wrong number.
MathIllegalStateException
Base class for all exceptions that signal that the process throwing the exception is in a state that does not comply with the set of states that it is designed to be in.
MathInternalError
Exception triggered when something that shouldn't happen does happen.
MathParseException
Class to signal parse failures.
MathRuntimeException
As of release 4.0, all exceptions thrown by the Commons Math code (except `NullArgumentException`) inherit from this class.
MathUnsupportedOperationException
Base class for all unsupported features.
MaxCountExceededException
Exception to be thrown when some counter maximum value is exceeded.
MultiDimensionMismatchException
Exception to be thrown when two sets of dimensions differ.
NoBracketingException
Exception to be thrown when function values have the same sign at both ends of an interval.
NoDataException
Exception to be thrown when the required data is missing.
NonMonotonicSequenceException
Exception to be thrown when the a sequence of values is not monotonically increasing or decreasing.
NotANumberException
Exception to be thrown when a number is not a number.
NotFiniteNumberException
Exception to be thrown when a number is not finite.
NotPositiveException
Exception to be thrown when the argument is negative.
NotStrictlyPositiveException
Exception to be thrown when the argument is not greater than 0.
NullArgumentException
All conditions checks that fail due to a `null` argument must throw this exception.
NumberIsTooLargeException
Exception to be thrown when a number is too large.
NumberIsTooSmallException
Exception to be thrown when a number is too small.
OutOfRangeException
Exception to be thrown when some argument is out of range.
TooManyEvaluationsException
Exception to be thrown when the maximal number of evaluations is exceeded.
TooManyIterationsException
Exception to be thrown when the maximal number of iterations is exceeded.
ZeroException
Exception to be thrown when zero is provided where it is not allowed.