Package it.polimi.ingsw.Exceptions.Input
Class InputValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
it.polimi.ingsw.Exceptions.Input.InputValidationException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DuplicateElementException
,GenericInputValidationException
,InvalidElementException
Signals there was an error while validating part of a contract.
- See Also:
-
Constructor Summary
ConstructorDescriptionInputValidationException
(String failedValidationName, String errorReport) 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
-
InputValidationException
Creates an exception reporting a specific error and an identifier for the part of the failed contract- Parameters:
failedValidationName
- the name of the field in the contract that failed validationerrorReport
- a short description of the error
-