23 instantiations of SqlError
System.Data (23)
fx\src\data\Microsoft\SqlServer\Server\SmiEventSink_Default.cs (1)
237
SqlError error = new
SqlError
( number, state, errorClass, server, message, procedure, lineNumber );
fx\src\data\System\Data\SqlClient\LocalDBAPI.cs (2)
235
collection.Add(new
SqlError
(errorCode, 0, TdsEnums.FATAL_ERROR_CLASS, instance, errorMessage, null, 0));
238
collection.Add(new
SqlError
(errorCode, 0, TdsEnums.FATAL_ERROR_CLASS, instance, GetLocalDBMessage(localDbError), null, 0));
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (1)
2456
sqlErs.Add(new
SqlError
(0, (byte)0x00, (byte)TdsEnums.MIN_ERROR_CLASS, ConnectionOptions.DataSource, errorMessage1, ActiveDirectoryAuthentication.AdalGetAccessTokenFunctionName, 0));
fx\src\data\System\Data\SqlClient\SqlUtil.cs (5)
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));
1460
errors.Add(new
SqlError
(0, (byte)0x00, TdsEnums.FATAL_ERROR_CLASS, null, msg, "", 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));
fx\src\data\System\Data\SqlClient\TdsParser.cs (11)
886
_physicalStateObj.AddError(new
SqlError
(0, (byte)0x00, TdsEnums.FATAL_ERROR_CLASS, _server, SQLMessage.PreloginError(), "", 0));
948
_physicalStateObj.AddError(new
SqlError
(TdsEnums.ENCRYPTION_NOT_SUPPORTED, (byte)0x00, TdsEnums.FATAL_ERROR_CLASS, _server, SQLMessage.EncryptionNotSupportedByServer(), "", 0));
969
_physicalStateObj.AddError(new
SqlError
(TdsEnums.ENCRYPTION_NOT_SUPPORTED, (byte)0x00, TdsEnums.FATAL_ERROR_CLASS, _server, SQLMessage.EncryptionNotSupportedByClient(), "", 0));
1455
stateObj.AddError(new
SqlError
(TdsEnums.TIMEOUT_EXPIRED, (byte)0x00, TdsEnums.MIN_ERROR_CLASS, _server, _connHandler.TimeoutErrorInternal.GetErrorMessage(), "", 0, TdsEnums.SNI_WAIT_TIMEOUT));
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));
2775
stateObj.AddError(new
SqlError
(0, 0, TdsEnums.FATAL_ERROR_CLASS, _server, SQLMessage.SevereError(), "", 0));
3119
stateObj.AddError(new
SqlError
(0, 0, TdsEnums.FATAL_ERROR_CLASS, Server, SQLMessage.UserInstanceFailure(), "", 0));
3340
error = new
SqlError
(number, state, errorClass, _server, message, procedure, line);
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));
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));
20 references to SqlError
System.Data (20)
fx\src\data\Microsoft\SqlServer\Server\SmiEventSink_Default.cs (3)
96
foreach(
SqlError
error in _errors) {
111
foreach (
SqlError
warning in _warnings ) {
237
SqlError
error = new SqlError ( number, state, errorClass, server, message, procedure, lineNumber );
fx\src\data\System\Data\SqlClient\SqlError.cs (1)
60
return typeof(
SqlError
).ToString() + ": " + this.message; // since this is sealed so we can change GetType to typeof
fx\src\data\System\Data\SqlClient\SqlErrorCollection.cs (4)
29
public void CopyTo (
SqlError
[] array, int index) {
45
public
SqlError
this[int index] {
47
return (
SqlError
) this.errors[index];
55
internal void Add(
SqlError
error) {
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (1)
511
foreach (
SqlError
error in exc.Errors)
fx\src\data\System\Data\SqlClient\TdsParser.cs (7)
1188
private void FireInfoMessageEvent(SqlConnection connection, TdsParserStateObject stateObj,
SqlError
error) {
1330
internal
SqlError
ProcessSNIError(TdsParserStateObject stateObj) {
1854
foreach (
SqlError
error in stateObj._pendingInfoEvents)
1858
foreach (
SqlError
error in stateObj._pendingInfoEvents)
1891
SqlError
error;
1901
stateObj._pendingInfoEvents = new List<
SqlError
>();
3254
internal bool TryProcessError(byte token, TdsParserStateObject stateObj, out
SqlError
error) {
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (4)
153
internal List<
SqlError
> _pendingInfoEvents = null;
3270
internal void AddError(
SqlError
error) {
3304
internal void AddWarning(
SqlError
error) {
3394
foreach (
SqlError
error in inCollection) {