System.Data.SqlClient.SqlError Constructor (System.Int32, System.Byte, System.Byte, System.String, System.String, System.String, System.Int32) 

Constructs a new SqlError.

The assembly that contains this class has a friend relationship with SQLAccess.dll.  This class is intended for use by SQL Server.  For other databases, use the hosting mechanism provided by that database.

Namespace: System.Data.SqlClient

Assembly: System.Data (in System.Data.dll)

SqlError(ByVal infoNumber As Integer, ByVal errorState As Byte, ByVal errorClass As Byte, ByVal server As String, ByVal errorMessage As String, ByVal procedure As String, ByVal lineNumber As Integer)
internal SqlError (int infoNumber, Byte errorState, Byte errorClass, string server, string errorMessage, string procedure, int lineNumber);

Parameters

Parameter Description

infoNumber

The error number.

errorState

The error code from SQL Server that represents an error, warning or "no data found".

errorClass

The severity level of the error.

server

The name of the instance of SQL Server where the error occurred.

errorMessage

The text of the error message.

procedure

The name of the stored procedure that generated the error.

lineNumber

The line number within the stored procedure that contains the error.

Version Information

.NET Framework

Supported in: 2.0