Table of Contents

Class XunitException

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

The base assert exception class. It marks itself with IAssertionException which is how the framework differentiates between assertion fails and general exceptions.

public class XunitException : Exception, ISerializable, IAssertionException
Inheritance
XunitException
Implements
Derived
Inherited Members

Constructors

XunitException(string?)

Initializes a new instance of the XunitException class.

public XunitException(string? userMessage)

Parameters

userMessage string

The user message to be displayed

XunitException(string?, Exception?)

Initializes a new instance of the XunitException class.

public XunitException(string? userMessage, Exception? innerException)

Parameters

userMessage string

The user message to be displayed

innerException Exception

The inner exception

Methods

ToString()

public override string ToString()

Returns

string