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

public abstract class InputValidationException extends Exception
Signals there was an error while validating part of a contract.
See Also:
  • Constructor Details

    • InputValidationException

      public InputValidationException(String failedValidationName, String errorReport)
      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 validation
      errorReport - a short description of the error