Export (0) Print
Expand All

UITestException Class

Represents the base class for all UI test exceptions.

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

[SerializableAttribute]
public ref class UITestException : public SystemException

The UITestException type exposes the following members.

  NameDescription
Public methodUITestException()Initializes a new instance of the UITestException class.
Public methodUITestException(String)Initializes a new instance of the UITestException class by using the given error message.
Protected methodUITestException(SerializationInfo, StreamingContext)Initializes a new instance of the UITestException class to deserialize the exception.
Public methodUITestException(String, Exception)Initializes a new instance of the UITestException class by using the provided message and inner exception.
Top

  NameDescription
Public propertyBasicMessageGets the basic error message.
Public propertyDataGets a collection of key/value pairs that provide additional user-defined information about the exception. (Inherited from Exception.)
Protected propertyDefaultMessageWhen overridden in a derived class, gets the default message for the specific exception type.
Public propertyErrorInfoGets or sets information about the UI test action that caused the exception.
Public propertyExceptionSourceGets or sets the control that is the source of this exception.
Public propertyHelpLinkGets or sets a link to the help file associated with this exception. (Inherited from Exception.)
Public propertyHResultGets or sets the HRESULT for this exception.
Public propertyInnerExceptionGets the Exception instance that caused the current exception. (Inherited from Exception.)
Public propertyMessageGets the message that was provided when this exception object was created. (Overrides Exception::Message.)
Public propertySourceGets or sets the name of the application or the object that causes the error. (Inherited from Exception.)
Public propertyStackTraceGets a string representation of the immediate frames on the call stack. (Inherited from Exception.)
Public propertyTargetSiteGets the method that throws the current exception. (Inherited from Exception.)
Top

  NameDescription
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetBaseExceptionWhen overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions. (Inherited from Exception.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetObjectDataWhen overridden in a derived class, sets the SerializationInfo with information about the exception. (Overrides Exception::GetObjectData(SerializationInfo, StreamingContext).)
Public methodGetTypeGets the runtime type of the current instance. (Inherited from Exception.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodSetHResultSets the corresponding HRESULT for this exception.
Public methodToStringCreates and returns a string representation of the current exception. (Inherited from Exception.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft