Class ContainerException

java.lang.Object
java.lang.Throwable
java.lang.Exception
it.polimi.ingsw.Exceptions.Container.ContainerException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
EmptyContainerException, FullContainerException, InvalidContainerIndexException

public abstract class ContainerException extends Exception
Signals there was an error in the container part or function of an object
See Also:
  • Constructor Details

    • ContainerException

      public ContainerException(String containerName, String errorReport)
      Creates an exception with the name of the affected container and a report
      Parameters:
      containerName - a string identifying the container
      errorReport - a report of the error