org.apache.commons.math.optimization
Class CostException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.commons.math.MathException
              extended by org.apache.commons.math.optimization.CostException
All Implemented Interfaces:
java.io.Serializable

public class CostException
extends MathException

This class represents exceptions thrown by cost functions.

Since:
1.2
Version:
$Revision: 620312 $ $Date: 2008-02-10 12:28:59 -0700 (Sun, 10 Feb 2008) $
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
          Serializable version identifier.
 
Constructor Summary
CostException(java.lang.String pattern, java.lang.Object[] arguments)
          Constructs a new MathException with specified formatted detail message.
CostException(java.lang.Throwable rootCause)
          Constructs a new MathException with specified nested Throwable root cause.
 
Method Summary
 
Methods inherited from class org.apache.commons.math.MathException
getArguments, getCause, getMessage, getPattern, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serializable version identifier.

See Also:
Constant Field Values
Constructor Detail

CostException

public CostException(java.lang.String pattern,
                     java.lang.Object[] arguments)
Constructs a new MathException with specified formatted detail message. Message formatting is delegated to MessageFormat.

Parameters:
pattern - format specifier
arguments - format arguments

CostException

public CostException(java.lang.Throwable rootCause)
Constructs a new MathException with specified nested Throwable root cause.

Parameters:
rootCause - the exception or error that caused this exception to be thrown.