Coverage Summary for Class: InputValidationException (it.polimi.ingsw.Exceptions.Input)
Class |
Class, %
|
Method, %
|
Line, %
|
InputValidationException |
100%
(1/1)
|
100%
(1/1)
|
100%
(1/1)
|
1 package it.polimi.ingsw.Exceptions.Input;
2
3 /**
4 * Signals there was an error while validating part of a contract.
5 */
6 public abstract class InputValidationException extends Exception {
7 /**
8 * Creates an exception reporting a specific error and an identifier for the part of the failed contract
9 *
10 * @param failedValidationName the name of the field in the contract that failed validation
11 * @param errorReport a short description of the error
12 */
13 public InputValidationException(String failedValidationName, String errorReport) {
14 super("An error occurred while validating: " + failedValidationName +
15 "\nThe error was: " + errorReport);
16 }
17 }