Package it.polimi.ingsw.Exceptions.Input
Class DuplicateElementException
java.lang.Object
java.lang.Throwable
java.lang.Exception
it.polimi.ingsw.Exceptions.Input.InputValidationException
it.polimi.ingsw.Exceptions.Input.DuplicateElementException
- All Implemented Interfaces:
Serializable
Signals there was an error while validating part of a contract. In this case the error is: an element was not unique in the
context of validation
- See Also:
-
Constructor Summary
ConstructorDescriptionDuplicateElementException
(String elementName) Creates an exception reporting a specific error and an identifier for the part of the failed contract -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DuplicateElementException
Creates an exception reporting a specific error and an identifier for the part of the failed contract- Parameters:
elementName
- the name of the field in the contract that failed validation
-