Package org.moeaframework.algorithm
Class AlgorithmException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.moeaframework.core.FrameworkException
org.moeaframework.algorithm.AlgorithmException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AlgorithmInitializationException
,AlgorithmTerminationException
An exception that originated from an algorithm.
- See Also:
-
Constructor Summary
ConstructorDescriptionAlgorithmException
(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
Modifier and TypeMethodDescriptionReturns the algorithm responsible for this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AlgorithmException
Constructs an algorithm exception originating from the specified algorithm with the given cause.- Parameters:
algorithm
- the algorithm responsible for this exceptioncause
- the cause of this exception
-
AlgorithmException
Constructs an algorithm exception originating from the specified algorithm with the given message.- Parameters:
algorithm
- the algorithm responsible for this exceptionmessage
- the message describing this exception
-
AlgorithmException
Constructs an algorithm exception originating from the specified algorithm with the given message and cause.- Parameters:
algorithm
- the algorithm responsible for this exceptionmessage
- the message describing this exceptioncause
- the cause of this exception
-
-
Method Details
-
getAlgorithm
Returns the algorithm responsible for this exception.- Returns:
- the algorithm responsible for this exception
-