Module it.polimi.ingsw.am13
Class InvalidPlayerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
it.polimi.ingsw.am13.model.exceptions.ModelException
it.polimi.ingsw.am13.model.exceptions.InvalidPlayerException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionConstructor of the exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidPlayerException
public InvalidPlayerException() -
InvalidPlayerException
Constructor of the exception.- Parameters:
msg
- the message to be shown when the exception will be handled.
-