xUnit.net
Public Member Functions | Protected Member Functions | Properties | List of all members
Xunit.Sdk.XunitException Class Reference

The base assert exception class More...

Inheritance diagram for Xunit.Sdk.XunitException:
Xunit.Sdk.AllException Xunit.Sdk.AssertActualExpectedException Xunit.Sdk.AssertCollectionCountException Xunit.Sdk.CollectionException Xunit.Sdk.DoesNotMatchException Xunit.Sdk.EmptyException Xunit.Sdk.EndsWithException Xunit.Sdk.InRangeException Xunit.Sdk.MatchesException Xunit.Sdk.NotEmptyException Xunit.Sdk.NotInRangeException Xunit.Sdk.NotNullException Xunit.Sdk.NotSameException Xunit.Sdk.PropertyChangedException Xunit.Sdk.RaisesException Xunit.Sdk.SingleException Xunit.Sdk.StartsWithException

Public Member Functions

 XunitException ()
 Initializes a new instance of the XunitException class. More...
 
 XunitException (string userMessage)
 Initializes a new instance of the XunitException class. More...
 
override string ToString ()
 

Protected Member Functions

 XunitException (string userMessage, Exception innerException)
 Initializes a new instance of the XunitException class. More...
 
 XunitException (string userMessage, string stackTrace)
 Initializes a new instance of the XunitException class. More...
 

Properties

override string?? StackTrace [get]
 Gets a string representation of the frames on the call stack at the time the current exception was thrown. More...
 
string UserMessage [get, protected set]
 Gets the user message More...
 

Detailed Description

The base assert exception class

Constructor & Destructor Documentation

◆ XunitException() [1/4]

Xunit.Sdk.XunitException.XunitException ( )
inline

Initializes a new instance of the XunitException class.

◆ XunitException() [2/4]

Xunit.Sdk.XunitException.XunitException ( string  userMessage)
inline

Initializes a new instance of the XunitException class.

Parameters
userMessageThe user message to be displayed

◆ XunitException() [3/4]

Xunit.Sdk.XunitException.XunitException ( string  userMessage,
Exception  innerException 
)
inlineprotected

Initializes a new instance of the XunitException class.

Parameters
userMessageThe user message to be displayed
innerExceptionThe inner exception

◆ XunitException() [4/4]

Xunit.Sdk.XunitException.XunitException ( string  userMessage,
string  stackTrace 
)
inlineprotected

Initializes a new instance of the XunitException class.

Parameters
userMessageThe user message to be displayed
stackTraceThe stack trace to be displayed

Property Documentation

◆ StackTrace

override string?? Xunit.Sdk.XunitException.StackTrace
get

Gets a string representation of the frames on the call stack at the time the current exception was thrown.

Returns
A string that describes the contents of the call stack, with the most recent method call appearing first.

◆ UserMessage

string Xunit.Sdk.XunitException.UserMessage
getprotected set

Gets the user message


The documentation for this class was generated from the following file: