Class DuplicateElementException

All Implemented Interfaces:
Serializable

public class DuplicateElementException extends InputValidationException
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 Details

    • DuplicateElementException

      public DuplicateElementException(String elementName)
      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