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
Signals there was an error in the container part or function of an object
- See Also:
-
Constructor Summary
ConstructorDescriptionContainerException
(String containerName, String errorReport) Creates an exception with the name of the affected container and a report -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ContainerException
Creates an exception with the name of the affected container and a report- Parameters:
containerName
- a string identifying the containererrorReport
- a report of the error
-