26 references to MIN_ERROR_CLASS
System.Data (26)
fx\src\data\Microsoft\SqlServer\Server\SmiEventSink_Default.cs (1)
239
if ( error.Class < TdsEnums.
MIN_ERROR_CLASS
) {
fx\src\data\System\Data\SqlClient\SqlConnection.cs (1)
1760
if (exception.Class >= TdsEnums.
MIN_ERROR_CLASS
) {
fx\src\data\System\Data\SqlClient\SqlInternalConnection.cs (1)
720
else if (exception.Class >= TdsEnums.
MIN_ERROR_CLASS
) {
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (3)
2452
sqlErs.Add(new SqlError(0, (byte)0x00, (byte)TdsEnums.
MIN_ERROR_CLASS
, ConnectionOptions.DataSource, Res.GetString(Res.SQL_ADALFailure, username, ConnectionOptions.Authentication.ToString("G")), ActiveDirectoryAuthentication.AdalGetAccessTokenFunctionName, 0));
2456
sqlErs.Add(new SqlError(0, (byte)0x00, (byte)TdsEnums.
MIN_ERROR_CLASS
, ConnectionOptions.DataSource, errorMessage1, ActiveDirectoryAuthentication.AdalGetAccessTokenFunctionName, 0));
2460
sqlErs.Add(new SqlError(0, (byte)0x00, (byte)TdsEnums.
MIN_ERROR_CLASS
, ConnectionOptions.DataSource, adalException.Message, ActiveDirectoryAuthentication.AdalGetAccessTokenFunctionName, 0));
fx\src\data\System\Data\SqlClient\SqlUtil.cs (7)
594
errors.Add(new SqlError(TdsEnums.TIMEOUT_EXPIRED, (byte)0x00, TdsEnums.
MIN_ERROR_CLASS
, null, (Res.GetString(Res.ADP_OpenReaderExists)), "", 0, TdsEnums.SNI_WAIT_TIMEOUT));
1292
sqlErs.Add (new SqlError(infoNumber:0, errorState:(byte)0x00, errorClass:(byte)TdsEnums.
MIN_ERROR_CLASS
, server:serverName, errorMessage:errorMessage, procedure:null, lineNumber:0));
1302
sqlErs.Add (new SqlError(infoNumber:0, errorState:(byte)0x00, errorClass:(byte)TdsEnums.
MIN_ERROR_CLASS
, server:serverName, errorMessage:e.Message, procedure:null, lineNumber:0));
1538
errors.Add(new SqlError(TdsEnums.TIMEOUT_EXPIRED, (byte)0x00, TdsEnums.
MIN_ERROR_CLASS
, null, SQLMessage.Timeout(), "", 0, TdsEnums.SNI_WAIT_TIMEOUT));
1545
errors.Add(new SqlError(0, 0, TdsEnums.
MIN_ERROR_CLASS
, null, SQLMessage.OperationCancelled(), "", 0));
1552
errors.Add(new SqlError(0, 0, TdsEnums.
MIN_ERROR_CLASS
, null, Res.GetString(Res.SQLCR_NextAttemptWillExceedQueryTimeout), "", 0));
1566
errors.Add(new SqlError(0, 0, TdsEnums.
MIN_ERROR_CLASS
, null, Res.GetString(Res.SQLCR_AllAttemptsFailed), "", 0));
fx\src\data\System\Data\SqlClient\TdsParser.cs (10)
1455
stateObj.AddError(new SqlError(TdsEnums.TIMEOUT_EXPIRED, (byte)0x00, TdsEnums.
MIN_ERROR_CLASS
, _server, _connHandler.TimeoutErrorInternal.GetErrorMessage(), "", 0, TdsEnums.SNI_WAIT_TIMEOUT));
1898
Debug.Assert(error.Class < TdsEnums.
MIN_ERROR_CLASS
, "INFO with class > TdsEnums.MIN_ERROR_CLASS");
1922
if (error.Class < TdsEnums.
MIN_ERROR_CLASS
) {
2345
stateObj.AddError(new SqlError(0, 0, TdsEnums.
MIN_ERROR_CLASS
, _server, SQLMessage.OperationCancelled(), "", 0));
2762
stateObj.AddError(new SqlError(0, 0, TdsEnums.
MIN_ERROR_CLASS
, _server, SQLMessage.SevereError(), "", 0));
3273
Debug.Assert(((errorClass >= TdsEnums.
MIN_ERROR_CLASS
) && token == TdsEnums.SQLERROR) ||
3274
((errorClass < TdsEnums.
MIN_ERROR_CLASS
) && token == TdsEnums.SQLINFO), "class and token don't match!");
3853
stateObj.AddError(new SqlError(0, 0, TdsEnums.
MIN_ERROR_CLASS
, _server, SQLMessage.CultureIdError(), "", 0));
7580
_physicalStateObj.AddError(new SqlError(0, (byte)0x00, (byte)TdsEnums.
MIN_ERROR_CLASS
, _server, error, procedure, 0));
7631
_physicalStateObj.AddError(new SqlError(0, (byte)0x00, (byte)TdsEnums.
MIN_ERROR_CLASS
, _server, Res.GetString(Res.SQL_ADALInitializeError, authentication.ToString("G"), result.ToString("X")), TdsEnums.INIT_ADAL_PACKAGE, 0));
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (3)
2035
AddError(new SqlError(TdsEnums.TIMEOUT_EXPIRED, (byte)0x00, TdsEnums.
MIN_ERROR_CLASS
, _parser.Server, _parser.Connection.TimeoutErrorInternal.GetErrorMessage(), "", 0, TdsEnums.SNI_WAIT_TIMEOUT));
2320
AddError(new SqlError(TdsEnums.TIMEOUT_EXPIRED, (byte)0x00, TdsEnums.
MIN_ERROR_CLASS
, _parser.Server, _parser.Connection.TimeoutErrorInternal.GetErrorMessage(), "", 0, TdsEnums.SNI_WAIT_TIMEOUT));
3084
AddError(new SqlError(TdsEnums.TIMEOUT_EXPIRED, (byte)0x00, TdsEnums.
MIN_ERROR_CLASS
, _parser.Server, _parser.Connection.TimeoutErrorInternal.GetErrorMessage(), "", 0, TdsEnums.SNI_WAIT_TIMEOUT));