Class NoMovementException

java.lang.Object
java.lang.Throwable
java.lang.Exception
it.polimi.ingsw.eriantys.model.exceptions.NoMovementException
All Implemented Interfaces:
Serializable

public class NoMovementException extends Exception
This exception is thrown by StudentContainer's movement methods to indicate that a movement of students between two containers was not completed.
See Also:
  • Constructor Details

    • NoMovementException

      public NoMovementException()
      Constructs a new exception with null as its detail message.
    • NoMovementException

      public NoMovementException(String message)
      Constructs a new exception with the specified detail message.
      Parameters:
      message - the detail message, which is saved for later retrieval by the Throwable.getMessage() method
    • NoMovementException

      public NoMovementException(String message, Throwable cause)
      Constructs a new exception with the specified detail message and cause. Note that the detail message associated with cause is not automatically incorporated in this exception's detail message.
      Parameters:
      message - the detail message, which is saved for later retrieval by the Throwable.getMessage() method
      cause - the detail cause, which is saved for later retrieval by the Throwable.getCause() method (a null value is permitted, and indicates that the cause is nonexistent or unknown)