ConnectionException Class

The ConnectionException class is an exception that is raised when an error occurs on the connection to the instance of SQL Server.

Namespace:  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)

Syntax

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

Remarks

Thread Safety

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

Inheritance Hierarchy

System.Object
  System.Exception
    System.SystemException
      Microsoft.SqlServer.Management.Common.ConnectionException
        Microsoft.SqlServer.Management.Common.ChangePasswordFailureException
        Microsoft.SqlServer.Management.Common.ConnectionCannotBeChangedException
        Microsoft.SqlServer.Management.Common.ConnectionFailureException
        Microsoft.SqlServer.Management.Common.ExecutionFailureException
        Microsoft.SqlServer.Management.Common.InvalidArgumentException
        Microsoft.SqlServer.Management.Common.InvalidPropertyValueException
        Microsoft.SqlServer.Management.Common.NotInTransactionException
        Microsoft.SqlServer.Management.Common.PropertyNotAvailableException
        Microsoft.SqlServer.Management.Common.PropertyNotSetException

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.