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: System.String
The error message.
- objectName
Type: System.String
The name of the UI object on which the UI test action failed.
- actionName
Type: System.String
The name of the UI test action that failed.
- innerException
Type: System.Exception
The exception that caused the current exception.
- lastInfo
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.ILastInvocationInfo
An ILastInvocationInfo objectthat has playback information about invoking the last action.
- uiTestControl
Type: System.String
The name of the
- exceptionSource
Type: System.Object
A Object that represents the source of the exception.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
PlaybackFailureException Class