Dela via


ComErrorException Class

The exception that is thrown when a general error is raised by a replication agent.

Inheritance Hierarchy

System.Object
  System.Exception
    System.SystemException
      System.Runtime.InteropServices.ExternalException
        System.Runtime.InteropServices.COMException
          Microsoft.SqlServer.Replication.ComErrorException

Namespace:  Microsoft.SqlServer.Replication
Assembly:  Microsoft.SqlServer.Replication (in Microsoft.SqlServer.Replication.dll)

Syntax

'Declaration
<SerializableAttribute> _
<ComVisibleAttribute(False)> _
Public NotInheritable Class ComErrorException _
    Inherits COMException
'Usage
Dim instance As ComErrorException
[SerializableAttribute]
[ComVisibleAttribute(false)]
public sealed class ComErrorException : COMException
[SerializableAttribute]
[ComVisibleAttribute(false)]
public ref class ComErrorException sealed : public COMException
[<SealedAttribute>]
[<SerializableAttribute>]
[<ComVisibleAttribute(false)>]
type ComErrorException =  
    class 
        inherit COMException 
    end
public final class ComErrorException extends COMException

The ComErrorException type exposes the following members.

Constructors

  Name Description
Public method ComErrorException() Initializes a new instance of the ComErrorException class.
Public method ComErrorException(String) Initializes a new instance of the ComErrorException class with a specified error message.
Public method ComErrorException(String, Exception) Initializes a new instance of the ComErrorException class with a specified error message and a reference to the inner exception that is the cause of this exception.
Public method ComErrorException(Int32, String, Int32, String, String, Guid, String) Initializes a new instance of the ComErrorException class.

Top

Properties

  Name Description
Public property ComHResult Gets the error code (HRESULT) value associated with this exception.
Public property Data (Inherited from Exception.)
Public property Description Gets a description of the error.
Public property ErrorCode (Inherited from ExternalException.)
Public property ErrorMessage Gets the error message string.
Public property HelpContext Gets the context of a topic in a Help file.
Public property HelpFile Gets the fully qualified path to a Help file.
Public property HelpLink (Inherited from Exception.)
Public property HResult (Inherited from Exception.)
Public property InnerException (Inherited from Exception.)
Public property InterfaceId Gets the identifier of the COM interface that is the source of the error.
Public property Message (Inherited from Exception.)
Public property Source Gets the name of the object or application that is the source of the error. (Overrides Exception.Source.)
Public property StackTrace (Inherited from Exception.)
Public property TargetSite (Inherited from Exception.)

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Public method GetBaseException (Inherited from Exception.)
Public method GetHashCode (Inherited from Object.)
Public method GetObjectData Sets the specified SerializationInfo with information about the exception. (Overrides Exception.GetObjectData(SerializationInfo, StreamingContext).)
Public method GetType (Inherited from Exception.)
Public method ToString (Inherited from COMException.)

Top

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.Replication Namespace