Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/referencesource/System.Data/System/Data/SqlClient/SqlError.cs')
-rw-r--r--mcs/class/referencesource/System.Data/System/Data/SqlClient/SqlError.cs20
1 files changed, 10 insertions, 10 deletions
diff --git a/mcs/class/referencesource/System.Data/System/Data/SqlClient/SqlError.cs b/mcs/class/referencesource/System.Data/System/Data/SqlClient/SqlError.cs
index 4e65e159d58..9b4d5ee36a5 100644
--- a/mcs/class/referencesource/System.Data/System/Data/SqlClient/SqlError.cs
+++ b/mcs/class/referencesource/System.Data/System/Data/SqlClient/SqlError.cs
@@ -2,8 +2,8 @@
// <copyright file="SqlError.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
-// <owner current="true" primary="true">Microsoft</owner>
-// <owner current="true" primary="false">Microsoft</owner>
+// <owner current="true" primary="true">[....]</owner>
+// <owner current="true" primary="false">[....]</owner>
//------------------------------------------------------------------------------
namespace System.Data.SqlClient {
@@ -15,8 +15,8 @@ namespace System.Data.SqlClient {
[Serializable]
public sealed class SqlError {
- //
-
+ // bug fix - MDAC 48965 - missing source of exception
+ // fixed by [....]
private string source = TdsEnums.SQL_PROVIDER_NAME;
private int number;
private byte state;
@@ -51,17 +51,17 @@ namespace System.Data.SqlClient {
this.win32ErrorCode = 0;
}
- //
-
-
-
+ // bug fix - MDAC #49280 - SqlError does not implement ToString();
+ // I did not include an exception stack because the correct exception stack is only available
+ // on SqlException, and to obtain that the SqlError would have to have backpointers all the
+ // way back to SqlException. If the user needs a call stack, they can obtain it on SqlException.
public override string ToString() {
//return this.GetType().ToString() + ": " + this.message;
return typeof(SqlError).ToString() + ": " + this.message; // since this is sealed so we can change GetType to typeof
}
- //
-
+ // bug fix - MDAC #48965 - missing source of exception
+ // fixed by [....]
public string Source {
get { return this.source;}
}