es.udc.gii.common.eaf.exception
Class WrongAlgorithmException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by es.udc.gii.common.eaf.exception.WrongAlgorithmException
All Implemented Interfaces:
java.io.Serializable

public class WrongAlgorithmException
extends java.lang.RuntimeException

This exception is thrown whenever a wrong instance of an evolutionary algorithm is found since some operators are only meaningful when used with certain algorithms.

Since:
1.0
Author:
Grupo Integrado de IngenierĂ­a (www.gii.udc.es)
See Also:
Serialized Form

Constructor Summary
WrongAlgorithmException()
          Default constructor.
WrongAlgorithmException(java.lang.Class<T> requiredClass, java.lang.Class<?> foundClass)
          Constructs an instance of WrongAlgorithmException.
WrongAlgorithmException(java.lang.String message)
          Constructs an isntance of this class.
 
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

WrongAlgorithmException

public WrongAlgorithmException(java.lang.String message)
Constructs an isntance of this class.

Parameters:
message - The concrete cause of the exception.

WrongAlgorithmException

public WrongAlgorithmException()
Default constructor.


WrongAlgorithmException

public WrongAlgorithmException(java.lang.Class<T> requiredClass,
                               java.lang.Class<?> foundClass)
Constructs an instance of WrongAlgorithmException.

Parameters:
requiredClass - - Class of the required algorithm subtype required.
foundClass - - Class of the algorithm subtype found.