Microsoft.CodeAnalysis.Sarif.ExceptionData.Init C# (CSharp) Method

Init() private method

private Init ( string kind, string message, Stack stack, IEnumerable innerExceptions ) : void
kind string
message string
stack Stack
innerExceptions IEnumerable
return void
        private void Init(string kind, string message, Stack stack, IEnumerable<ExceptionData> innerExceptions)
        {
            Kind = kind;
            Message = message;
            if (stack != null)
            {
                Stack = new Stack(stack);
            }

            if (innerExceptions != null)
            {
                var destination_0 = new List<ExceptionData>();
                foreach (var value_0 in innerExceptions)
                {
                    if (value_0 == null)
                    {
                        destination_0.Add(null);
                    }
                    else
                    {
                        destination_0.Add(new ExceptionData(value_0));
                    }
                }

                InnerExceptions = destination_0;
            }
        }
    }