Table of Contents

Interface IErrorMetadata

Namespace
Xunit.Sdk

Represents metadata about an error during test discovery or execution.

public interface IErrorMetadata
Extension Methods

Properties

ExceptionParentIndices

Gets the parent exception index(es) for the exception(s); a -1 indicates that the exception in question has no parent.

int[] ExceptionParentIndices { get; }

Property Value

int[]

ExceptionTypes

Gets the fully-qualified type name(s) of the exception(s).

string?[] ExceptionTypes { get; }

Property Value

string[]

Messages

Gets the message(s) of the exception(s).

string[] Messages { get; }

Property Value

string[]

StackTraces

Gets the stack trace(s) of the exception(s).

string?[] StackTraces { get; }

Property Value

string[]