Class InvalidPlayerException

All Implemented Interfaces:
Serializable

public class InvalidPlayerException extends ModelException
This exception was the player passed to a method is not valid, either because he doesn't belong to the match or because he isn't allowed to call that method at that moment (i.e. he is playing or picking a card when it's not his turn).
See Also:
  • Constructor Details

    • InvalidPlayerException

      public InvalidPlayerException()
    • InvalidPlayerException

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