C# 클래스 System.Data.SqlClient.SqlExceptionExtensions

파일 보기 프로젝트 열기: pbolduc/Retry

공개 메소드들

메소드 설명
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