Class InfeasibleActionException

All Implemented Interfaces:
Serializable

public class InfeasibleActionException
extends RuntimeException
An exception to notify an action is not feasible due to the current model state.
Author:
Fabien Hermenier
See Also:
Serialized Form
  • Constructor Details

    • InfeasibleActionException

      public InfeasibleActionException​(Model model, Action action)
      New exception.
      Parameters:
      model - the initial model
      action - the action that cannot be applied on the model
  • Method Details

    • getModel

      public Model getModel()
      Get the initial model.
      Returns:
      a model
    • getAction

      public Action getAction()
      Get the action that is not applyable
      Returns:
      an action