Table of Contents

Class NUnitException

Namespace
NUnit.Framework.Internal
Assembly
nunit.framework.dll

Thrown when an assertion failed. Here to preserve the inner exception and hence its stack trace.

public class NUnitException : Exception, ISerializable
Inheritance
NUnitException
Implements
Inherited Members

Constructors

NUnitException()

Initializes a new instance of the NUnitException class.

public NUnitException()

NUnitException(SerializationInfo, StreamingContext)

Serialization Constructor

protected NUnitException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo
context StreamingContext

NUnitException(string)

Initializes a new instance of the NUnitException class.

public NUnitException(string message)

Parameters

message string

The error message that explains the reason for the exception

NUnitException(string, Exception)

Initializes a new instance of the NUnitException class.

public NUnitException(string message, Exception inner)

Parameters

message string

The error message that explains the reason for the exception

inner Exception

The exception that caused the current exception