Coverage Summary for Class: InvalidElementException (it.polimi.ingsw.Exceptions.Input)

Class Class, % Method, % Line, %
InvalidElementException 100% (1/1) 100% (1/1) 100% (1/1)


1 package it.polimi.ingsw.Exceptions.Input; 2  3 /** 4  * Signals there was error an while validating part of a contract. In this case the error is: an element was invalid in the 5  * context of validation 6  */ 7 public class InvalidElementException extends InputValidationException { 8  /** 9  * Creates an exception reporting a specific error and an identifier for the part of the failed contract 10  * 11  * @param elementName the name of the field in the contract that failed validation 12  */ 13  public InvalidElementException(String elementName) { 14  super(elementName, "element " + elementName + 15  " was found to be invalid (eg: null, out of bounds or otherwise incorrect)."); 16  } 17 }