Class ModelException

java.lang.Object
java.lang.Throwable
java.lang.Exception
it.polimi.ingsw.am13.model.exceptions.ModelException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
GameStatusException, InvalidCardCreationException, InvalidChoiceException, InvalidCoordinatesException, InvalidDrawCardException, InvalidPlayCardException, InvalidPlayerException, PlayerHandException, RequirementsNotMetException, VariableAlreadySetException

public class ModelException extends Exception implements Serializable
Main exception class for the Model package
See Also:
  • Constructor Details

    • ModelException

      public ModelException()
    • ModelException

      public ModelException(String msg)
      Constructor of the exception.
      Parameters:
      msg - the message to be shown when the exception will be handled.