Class OptimizationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.commons.math.MathException
-
- org.apache.commons.math.ConvergenceException
-
- org.apache.commons.math.optimization.OptimizationException
-
- All Implemented Interfaces:
Serializable
,MathThrowable
- Direct Known Subclasses:
NoFeasibleSolutionException
,UnboundedSolutionException
public class OptimizationException extends ConvergenceException
Deprecated.in 2.2 (to be removed in 3.0).This class represents exceptions thrown by optimizers.- Since:
- 1.2
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OptimizationException(String specifier, Object... parts)
Deprecated.as of 2.2 replaced byOptimizationException(Localizable, Object...)
OptimizationException(Throwable cause)
Deprecated.Create an exception with a given root cause.OptimizationException(Localizable specifier, Object... parts)
Deprecated.Simple constructor.
-
Method Summary
-
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 Detail
-
OptimizationException
@Deprecated public OptimizationException(String specifier, Object... parts)
Deprecated.as of 2.2 replaced byOptimizationException(Localizable, Object...)
Simple constructor. Build an exception by translating and formating a message- Parameters:
specifier
- format specifier (to be translated)parts
- to insert in the format (no translation)
-
OptimizationException
public OptimizationException(Localizable specifier, Object... parts)
Deprecated.Simple constructor. Build an exception by translating and formating a message- Parameters:
specifier
- format specifier (to be translated)parts
- to insert in the format (no translation)- Since:
- 2.2
-
OptimizationException
public OptimizationException(Throwable cause)
Deprecated.Create an exception with a given root cause.- Parameters:
cause
- the exception or error that caused this exception to be thrown
-
-