Share via


CollectorException Class

The CollectorException class is the base class for all data collector exceptions.

Inheritance Hierarchy

System.Object
  System.Exception
    Microsoft.SqlServer.Management.Common.SqlServerManagementException
      Microsoft.SqlServer.Management.Collector.CollectorException

Namespace:  Microsoft.SqlServer.Management.Collector
Assembly:  Microsoft.SqlServer.Management.Collector (in Microsoft.SqlServer.Management.Collector.dll)

Syntax

'Declaration
<SerializableAttribute> _
Public Class CollectorException _
    Inherits SqlServerManagementException
'Usage
Dim instance As CollectorException
[SerializableAttribute]
public class CollectorException : SqlServerManagementException
[SerializableAttribute]
public ref class CollectorException : public SqlServerManagementException
[<SerializableAttribute>]
type CollectorException =  
    class 
        inherit SqlServerManagementException 
    end
public class CollectorException extends SqlServerManagementException

The CollectorException type exposes the following members.

Constructors

  Name Description
Public method CollectorException() Creates an instance of the exception.
Public method CollectorException(String) The error message.
Public method CollectorException(SerializationInfo, StreamingContext) Instantiates an instance of the CollectorException class, passing info and context as parameters.
Public method CollectorException(String, Exception) Creates a collection object and passes the error message and the exception that is causing the error.

Top

Properties

  Name Description
Public property Data (Inherited from Exception.)
Public property HelpLink Gets the link to the Microsoft SQL Server help web site based on the exception. (Overrides Exception.HelpLink.)
Public property HResult (Inherited from Exception.)
Public property InnerException (Inherited from Exception.)
Public property Message (Inherited from Exception.)
Protected propertyStatic member ProdVer Gets the version of the product.
Public property Source (Inherited from Exception.)
Public property StackTrace (Inherited from Exception.)
Public property TargetSite (Inherited from Exception.)

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetBaseException (Inherited from Exception.)
Public method GetHashCode (Inherited from Object.)
Public method GetObjectData Security Critical. (Inherited from Exception.)
Public method GetType (Inherited from Exception.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method SetHelpContext Sets the help context based on the resource string that is passed.
Public method ToString (Inherited from Exception.)

Top

Events

  Name Description
Protected event SerializeObjectState (Inherited from Exception.)

Top

Remarks

CollectorException inherits from SqlServerManagementException.

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Thread Safety

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

See Also

Reference

Microsoft.SqlServer.Management.Collector Namespace