internal static void Validate(ImportError toValidate, IList validated) { if (validated.Contains(toValidate)) { return; } validated.Add(toValidate); if (toValidate.ErrorType == null) { throw new ArgumentException("ErrorType is required"); } if (toValidate.LineNumber == null) { throw new ArgumentException("LineNumber is required"); } if (toValidate.Bean == null) { throw new ArgumentException("Bean is required"); } if (toValidate.Message == null) { throw new ArgumentException("Message is required"); } if (toValidate.ExceptionClass == null) { throw new ArgumentException("ExceptionClass is required"); } }
public static void Validate(ImportError toValidate) { Validate(toValidate, new ArrayList()); }