Class UndoScoreCorruptionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
ai.timefold.solver.core.impl.solver.exception.ScoreCorruptionException
ai.timefold.solver.core.impl.solver.exception.UndoScoreCorruptionException
- All Implemented Interfaces:
Serializable
An exception that is thrown in
EnvironmentMode.TRACKED_FULL_ASSERT when undo score corruption is detected.
It contains the working solution before the move, after the move, and after the undo move,
as well as the move that caused the corruption.
You can catch this exception to create a reproducer of the corruption.
The API for this exception is currently unstable.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUndoScoreCorruptionException(String message, Object beforeMoveSolution, Object afterMoveSolution, Object afterUndoSolution) -
Method Summary
Modifier and TypeMethodDescription<Solution_>
Solution_Return the state of the working solution after a move was executed, but prior to the undo move.<Solution_>
Solution_Return the state of the working solution after the undo move was executed.<Solution_>
Solution_Return the state of the working solution before a move was executed.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UndoScoreCorruptionException
-
-
Method Details
-
getBeforeMoveSolution
public <Solution_> Solution_ getBeforeMoveSolution()Return the state of the working solution before a move was executed.- Returns:
- the state of the working solution before a move was executed.
-
getAfterMoveSolution
public <Solution_> Solution_ getAfterMoveSolution()Return the state of the working solution after a move was executed, but prior to the undo move.- Returns:
- the state of the working solution after a move was executed, but prior to the undo move.
-
getAfterUndoSolution
public <Solution_> Solution_ getAfterUndoSolution()Return the state of the working solution after the undo move was executed.- Returns:
- the state of the working solution after the undo move was executed.
-