Class IncompatibleControllersException

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

public class IncompatibleControllersException extends Exception
This exception is thrown by IslandGroup's merge method to indicate that the two specified islands do not share the same controller, and therefore cannot be merged.
See Also:
  • Constructor Details

    • IncompatibleControllersException

      public IncompatibleControllersException(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