Table of Contents

Method ExtractMetadata

Namespace
Xunit.Sdk
Assembly
xunit.v3.common.dll

ExtractMetadata(Exception)

Unwraps exceptions and their inner exceptions.

public static (string?[] ExceptionTypes, string[] Messages, string?[] StackTraces, int[] ExceptionParentIndices, FailureCause Cause) ExtractMetadata(Exception ex)

Parameters

ex Exception

The exception to be converted.

Returns

(string[] ExceptionTypes, string[] Messages, string[] StackTraces, int[] ExceptionParentIndices, FailureCause Cause)

The error metadata.