public override void Validate()

in code/KustoCopyConsole/Entity/RowItems/UrlRowItem.cs [26:50]


        public override void Validate()
        {
            if (string.IsNullOrWhiteSpace(ActivityName))
            {
                throw new InvalidDataException($"{nameof(ActivityName)} must have a value");
            }
            if (IterationId < 1)
            {
                throw new InvalidDataException(
                    $"{nameof(IterationId)} should be positive but is {IterationId}");
            }
            if (BlockId < 1)
            {
                throw new InvalidDataException(
                    $"{nameof(BlockId)} should be positive but is {BlockId}");
            }
            if (!Uri.TryCreate(Url, UriKind.Absolute, out _))
            {
                throw new InvalidDataException($"{nameof(Url)} is invalid:  {Url}");
            }
            if (State == UrlState.Queued && string.IsNullOrWhiteSpace(SerializedQueuedResult))
            {
                throw new InvalidDataException($"{nameof(SerializedQueuedResult)} should not be empty");
            }
        }