C# Class WebApplications.Testing.Data.SqlExceptionPrototype

Show file Open project: webappsuk/CoreLibraries Class Usage Examples

Public Methods

Method Description
SqlExceptionPrototype ( SqlErrorCollection errorCollection, string serverVersion = null, System.Guid conId = default(Guid), Exception innerException = null ) : System

Initializes a new instance of the SqlExceptionPrototype class.

SqlExceptionPrototype ( [ exception ) : System

Initializes a new instance of the SqlExceptionPrototype class.

ToString ( ) : string

Returns a string that represents the current T:System.Data.SqlClient.SqlException object, and includes the client connection ID (for more information, see P:System.Data.SqlClient.SqlException.ClientConnectionId).

Protected Methods

Method Description
GenerateCollection ( int infoNumber, byte errorState, byte errorClass, string errorMessage ) : SqlErrorCollection

Generates the collection.

Private Methods

Method Description
SqlExceptionPrototype ( ) : System

Creates the _constructor lambda.

Method Details

GenerateCollection() protected static method

Generates the collection.
protected static GenerateCollection ( int infoNumber, byte errorState, byte errorClass, string errorMessage ) : SqlErrorCollection
infoNumber int
errorState byte
errorClass byte
errorMessage string
return System.Data.SqlClient.SqlErrorCollection

SqlExceptionPrototype() public method

Initializes a new instance of the SqlExceptionPrototype class.
public SqlExceptionPrototype ( SqlErrorCollection errorCollection, string serverVersion = null, System.Guid conId = default(Guid), Exception innerException = null ) : System
errorCollection System.Data.SqlClient.SqlErrorCollection The error collection.
serverVersion string The server version.
conId System.Guid The connection id.
innerException System.Exception The inner exception.
return System

SqlExceptionPrototype() public method

Initializes a new instance of the SqlExceptionPrototype class.
public SqlExceptionPrototype ( [ exception ) : System
exception [ The exception.
return System

ToString() public method

Returns a string that represents the current T:System.Data.SqlClient.SqlException object, and includes the client connection ID (for more information, see P:System.Data.SqlClient.SqlException.ClientConnectionId).
public ToString ( ) : string
return string