C# Класс System.Data.SqlClient.SqlExceptionExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
IsConnectionClosed ( this exception ) : bool

Determines whether SqlConnection will be closed when this exception is raised.

The SqlConnection remains open when the severity level is 19 or less. When the severity level is 20 or greater, the server ordinarily closes the SqlConnection. (source=http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlexception.aspx)

IsConnectionError ( this exception ) : bool

Determines whether the specified exception represents a connection error.

IsDatabaseAvailabilityError ( this exception ) : bool

Determines whether the specified exception represents a database availability error.

IsLoginError ( this exception ) : bool

Determines whether the specified exception represents a login error.

IsServiceQueueDisabled ( this exception ) : bool

The service queue "x" is currently disabled.

Приватные методы

Метод Описание
IsNamedPipeConnectionError ( SqlException exception ) : bool
IsTcpIpConnectionError ( SqlException exception ) : bool

Описание методов

IsConnectionClosed() публичный статический Метод

Determines whether SqlConnection will be closed when this exception is raised.
The SqlConnection remains open when the severity level is 19 or less. When the severity level is 20 or greater, the server ordinarily closes the SqlConnection. (source=http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlexception.aspx)
public static IsConnectionClosed ( this exception ) : bool
exception this The exception.
Результат bool

IsConnectionError() публичный статический Метод

Determines whether the specified exception represents a connection error.
public static IsConnectionError ( this exception ) : bool
exception this The exception.
Результат bool

IsDatabaseAvailabilityError() публичный статический Метод

Determines whether the specified exception represents a database availability error.
public static IsDatabaseAvailabilityError ( this exception ) : bool
exception this The exception.
Результат bool

IsLoginError() публичный статический Метод

Determines whether the specified exception represents a login error.
public static IsLoginError ( this exception ) : bool
exception this The exception.
Результат bool

IsServiceQueueDisabled() публичный статический Метод

The service queue "x" is currently disabled.
public static IsServiceQueueDisabled ( this exception ) : bool
exception this The exception.
Результат bool