Coverage Summary for Class: ContainerException (it.polimi.ingsw.Exceptions.Container)
Class |
Class, %
|
Method, %
|
Line, %
|
ContainerException |
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
5 */
6 public abstract class ContainerException extends Exception {
7 /**
8 * Creates an exception with the name of the affected container and a report
9 *
10 * @param containerName a string identifying the container
11 * @param errorReport a report of the error
12 */
13 public ContainerException(String containerName, String errorReport) {
14 super("An error occurred on: " + containerName +
15 "\nThe error was: " + errorReport);
16 }
17 }
18