MOEA Framework 2.12
API Specification

org.moeaframework.algorithm
Class AlgorithmException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.moeaframework.core.FrameworkException
                  extended by org.moeaframework.algorithm.AlgorithmException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AlgorithmInitializationException, AlgorithmTerminationException

public class AlgorithmException
extends FrameworkException

An exception that originated from an algorithm.

See Also:
Serialized Form

Constructor Summary
AlgorithmException(Algorithm algorithm)
          Constructs an algorithm exception originating from the specified algorithm.
AlgorithmException(Algorithm algorithm, String message)
          Constructs an algorithm exception originating from the specified algorithm with the given message.
AlgorithmException(Algorithm algorithm, String message, Throwable cause)
          Constructs an algorithm exception originating from the specified algorithm with the given message and cause.
AlgorithmException(Algorithm algorithm, Throwable cause)
          Constructs an algorithm exception originating from the specified algorithm with the given cause.
 
Method Summary
 Algorithm getAlgorithm()
          Returns the algorithm responsible for this exception.
 
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

AlgorithmException

public AlgorithmException(Algorithm algorithm)
Constructs an algorithm exception originating from the specified algorithm.

Parameters:
algorithm - the algorithm responsible for this exception

AlgorithmException

public AlgorithmException(Algorithm algorithm,
                          Throwable cause)
Constructs an algorithm exception originating from the specified algorithm with the given cause.

Parameters:
algorithm - the algorithm responsible for this exception
cause - the cause of this exception

AlgorithmException

public AlgorithmException(Algorithm algorithm,
                          String message)
Constructs an algorithm exception originating from the specified algorithm with the given message.

Parameters:
algorithm - the algorithm responsible for this exception
message - the message describing this exception

AlgorithmException

public AlgorithmException(Algorithm algorithm,
                          String message,
                          Throwable cause)
Constructs an algorithm exception originating from the specified algorithm with the given message and cause.

Parameters:
algorithm - the algorithm responsible for this exception
message - the message describing this exception
cause - the cause of this exception
Method Detail

getAlgorithm

public Algorithm getAlgorithm()
Returns the algorithm responsible for this exception.

Returns:
the algorithm responsible for this exception

MOEA Framework 2.12
API Specification

Copyright 2009-2016 MOEA Framework. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage. Visit us on Github!