de.jstacs.algorithms.optimization
Class DimensionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by de.jstacs.algorithms.optimization.DimensionException
All Implemented Interfaces:
Serializable

public class DimensionException
extends Exception

This class is for Exceptions depending on wrong dimensions of vectors for a given function.

Author:
Jens Keilwagen
See Also:
Serialized Form

Constructor Summary
DimensionException()
          Creates a new DimensionException with standard error message ("The vector has wrong dimension for this function.
DimensionException(int dimV, int dimF)
          Creates a new DimensionException with a more detailed error message.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DimensionException

public DimensionException()
Creates a new DimensionException with standard error message ("The vector has wrong dimension for this function.").


DimensionException

public DimensionException(int dimV,
                          int dimF)
Creates a new DimensionException with a more detailed error message.

Parameters:
dimV - the dimension of the vector
dimF - the dimension of the function