ValidationFailedException Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the exception that is thrown when a Microsoft.VisualStudio.TestTools.UITest.Common.ValidationAction fails.
public ref class ValidationFailedException : Microsoft::VisualStudio::TestTools::UITest::Extension::PlaybackFailureException
[System.Serializable]
public class ValidationFailedException : Microsoft.VisualStudio.TestTools.UITest.Extension.PlaybackFailureException
[<System.Serializable>]
type ValidationFailedException = class
inherit PlaybackFailureException
Public Class ValidationFailedException
Inherits PlaybackFailureException
- Inheritance
- Attributes
Constructors
ValidationFailedException() |
Initializes a new instance of the ValidationFailedException class. |
ValidationFailedException(SerializationInfo, StreamingContext) |
Initializes a new instance of the ValidationFailedException class by using the serialization information and context. |
ValidationFailedException(String, Exception) |
Initializes a new instance of the ValidationFailedException class by using the provided message and inner exception. |
ValidationFailedException(String, String, String, String, String, String, Exception) |
Initializes a new instance of the ValidationFailedException class by using the provided action name, condition, property name, friendly name, expected value, actual value, and inner exception. |
ValidationFailedException(String, String, String, String, String, String, String, Exception) |
Initializes a new instance of the ValidationFailedException class by using the provided message, action name, condition, property name, friendly name, expected value, actual value, and inner exception. |
ValidationFailedException(String) |
Initializes a new instance of the ValidationFailedException class. |
Properties
Action |
Gets or sets the name of the action. (Inherited from PlaybackFailureException) |
BasicMessage |
Gets the basic error message. (Inherited from UITestException) |
DefaultMessage |
Gets the default message. |
ErrorInfo |
Gets or sets information about the UI test action that caused the exception. (Inherited from UITestException) |
ExceptionSource |
Gets or sets the control that is the source of this exception. (Inherited from UITestException) |
HResult |
Gets or sets the HRESULT for this exception. (Inherited from UITestException) |
Message |
Gets the message that was provided when this exception object was created. (Inherited from UITestException) |
ObjectName |
Gets or sets the source object name. (Inherited from PlaybackFailureException) |
Methods
GetObjectData(SerializationInfo, StreamingContext) | |
SetHResult(UInt32) |
Sets the corresponding HRESULT for this exception. (Inherited from UITestException) |