src/AddToCampaignHandler.php
protected function validationResult($message, $field = null)
    {
        $error = ValidationResult::create()
            ->addFieldError($field, $message);
        return new ValidationException($error);
    }
protected function validationResult($message, $field = null)
    {
        $error = ValidationResult::create()
            ->addFieldError($field, $message);
        return new ValidationException($error);
    }
protected function validationResult ( $ message , $ field = null ) { $ error = ValidationResult :: create ( ) -> addFieldError ( $ field , $ message ) ; return new ValidationException ( $ error ) ; }
Raise validation error

@param string $message
@param string $field
@return ValidationException
Raise validation error