Share via


PlaybackFailureException Constructor (String, String, String, Exception, ILastInvocationInfo, String, Object)

Initializes a new instance of the PlaybackFailureException class by using the provided message, object name, action name, inner exception, last action information, test control name, and exception source object.

Namespace:  Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

Syntax

'Declaration
Public Sub New ( _
    message As String, _
    objectName As String, _
    actionName As String, _
    innerException As Exception, _
    lastInfo As ILastInvocationInfo, _
    uiTestControl As String, _
    exceptionSource As Object _
)
public PlaybackFailureException(
    string message,
    string objectName,
    string actionName,
    Exception innerException,
    ILastInvocationInfo lastInfo,
    string uiTestControl,
    Object exceptionSource
)
public:
PlaybackFailureException(
    String^ message, 
    String^ objectName, 
    String^ actionName, 
    Exception^ innerException, 
    ILastInvocationInfo^ lastInfo, 
    String^ uiTestControl, 
    Object^ exceptionSource
)
new : 
        message:string * 
        objectName:string * 
        actionName:string * 
        innerException:Exception * 
        lastInfo:ILastInvocationInfo * 
        uiTestControl:string * 
        exceptionSource:Object -> PlaybackFailureException
public function PlaybackFailureException(
    message : String, 
    objectName : String, 
    actionName : String, 
    innerException : Exception, 
    lastInfo : ILastInvocationInfo, 
    uiTestControl : String, 
    exceptionSource : Object
)

Parameters

  • message
    Type: String

    The error message.

  • objectName
    Type: String

    The name of the UI object on which the UI test action failed.

  • actionName
    Type: String

    The name of the UI test action that failed.

  • innerException
    Type: Exception

    The exception that caused the current exception.

  • uiTestControl
    Type: String

    The name of the

  • exceptionSource
    Type: Object

    A Object that represents the source of the exception.

.NET Framework Security

See Also

Reference

PlaybackFailureException Class

PlaybackFailureException Overload

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace