Package org.ddolib.common.util
Class InvalidSolutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.ddolib.common.util.InvalidSolutionException
- All Implemented Interfaces:
Serializable
Exception thrown by
Problem.evaluate(int[]) method if its
input solution does not respect the problem's constraints.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidSolutionException(String message) Creates a new exception with the given detail message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidSolutionException
Creates a new exception with the given detail message.- Parameters:
message- the detail message describing why the solution is invalid
-