Coverage Summary for Class: OperationException (it.polimi.ingsw.Exceptions.Operation)
Class |
Class, %
|
Method, %
|
Line, %
|
OperationException |
0%
(0/1)
|
0%
(0/1)
|
0%
(0/1)
|
1 package it.polimi.ingsw.Exceptions.Operation;
2
3 /**
4 * Signals there was an error while executing or attempting to start execution of an operation.
5 */
6 public abstract class OperationException extends Exception {
7 /**
8 * Creates an exception reporting a specific error and an identifier for the failed operation
9 *
10 * @param operationName the name of the operation in question
11 * @param errorReport a short description of the error
12 */
13 public OperationException(String operationName, String errorReport) {
14 super("An error occurred while running the following operation: " + operationName +
15 "\nThe error was: " + errorReport);
16 }
17 }