Coverage Summary for Class: InvalidContainerIndexException (it.polimi.ingsw.Exceptions.Container)
| Class | Class, % | Method, % | Line, % |
|---|---|---|---|
| InvalidContainerIndexException | 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 accessed at an invalid index or key. 6 */ 7 public class InvalidContainerIndexException 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 InvalidContainerIndexException(String containerName) { 14 super(containerName, "provided index is out of bounds or no valid value could be retrieved."); 15 } 16 }