java.lang.Object
java.lang.Throwable
java.lang.Exception
it.polimi.ingsw.am13.model.exceptions.ModelException
it.polimi.ingsw.am13.model.exceptions.GameStatusException
- All Implemented Interfaces:
Serializable
Exception thrown if an action is done in the wrong game phase. See
GameStatus
class for more details.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGameStatusException
(GameStatus wrongStatus, GameStatus rightStatus) Constructor of the exception.Constructor 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
-
GameStatusException
Constructor of the exception.- Parameters:
msg
- the message to be shown when the exception will be handled.
-
GameStatusException
Constructor of the exception.- Parameters:
wrongStatus
- the current game status in which the action cannot be done.rightStatus
- the status in which the action can be done.
-