InternalTestFailureException Constructor (String, Exception)

Initializes a new instance of the InternalTestFailureException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

Syntax

'Declaration
Public Sub New ( _
    msg As String, _
    ex As Exception _
)
public InternalTestFailureException(
    string msg,
    Exception ex
)
public:
InternalTestFailureException(
    String^ msg, 
    Exception^ ex
)
new : 
        msg:string * 
        ex:Exception -> InternalTestFailureException
public function InternalTestFailureException(
    msg : String, 
    ex : Exception
)

Parameters

  • msg
    Type: String

    The error message that explains the reason for the exception.

  • ex
    Type: Exception

    The exception that is the cause of the current exception.

.NET Framework Security

See Also

Reference

InternalTestFailureException Class

InternalTestFailureException Overload

Microsoft.VisualStudio.TestTools.UnitTesting Namespace