Class UndoScoreCorruptionException

All Implemented Interfaces:
Serializable

public final class UndoScoreCorruptionException extends ScoreCorruptionException
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 Details

    • UndoScoreCorruptionException

      public UndoScoreCorruptionException(String message, Object beforeMoveSolution, Object afterMoveSolution, Object afterUndoSolution)
  • 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.