Unity.IL2CPP.Building.BuildingOptions.Validate C# (CSharp) Method

Validate() public method

public Validate ( ) : void
return void
        public void Validate()
        {
            foreach (string str in this.AdditionalLibraries)
            {
                try
                {
                    if ((File.GetAttributes(str) & FileAttributes.Directory) != 0)
                    {
                        throw new ArgumentException(string.Format("Cannot specify directory \"{0}\" as an additional library file.", str), "--additional-libraries");
                    }
                }
                catch (FileNotFoundException exception)
                {
                    throw new ArgumentException(string.Format("Non-existent file \"{0}\" specified as an additional library file.", str), "--additional-libraries", exception);
                }
                catch (DirectoryNotFoundException exception2)
                {
                    throw new ArgumentException(string.Format("Non-existent directory \"{0}\" specified as an additional library file.  Cannot specify a directory as an additional library.", str), "--additional-libraries", exception2);
                }
                catch (ArgumentException)
                {
                    throw;
                }
                catch (Exception exception3)
                {
                    throw new ArgumentException(string.Format("Unknown error with additional library parameter \"{0}\".", str), "--additional-libraries", exception3);
                }
            }
        }
    }
BuildingOptions