Coverage Summary for Class: EmptyContainerException (it.polimi.ingsw.Exceptions.Container)
| Class | Class, % | Method, % | Line, % |
|---|---|---|---|
| EmptyContainerException | 100% (1/1) | 100% (1/1) | 100% (1/1) |
1 package it.polimi.ingsw.Exceptions.Container; 2 3 /** 4 * Signals there was an error in the container part or function of an object. The error has to do with the container 5 * being empty. 6 */ 7 public class EmptyContainerException extends ContainerException { 8 /** 9 * Creates an exception with the name of the affected container and a default report 10 * 11 * @param containerName a string identifying the container 12 */ 13 public EmptyContainerException(String containerName) { 14 super(containerName, containerName + " was found empty."); 15 } 16 }