소스 검색

* RowUpdatedEventArgs.cs: if custom error is not set, throw a
default error.


svn path=/trunk/mcs/; revision=42097

Sureshkumar T 21 년 전
부모
커밋
ddc8754ea2
2개의 변경된 파일8개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 1
      mcs/class/System.Data/System.Data.Common/ChangeLog
  2. 5 1
      mcs/class/System.Data/System.Data.Common/RowUpdatedEventArgs.cs

+ 3 - 1
mcs/class/System.Data/System.Data.Common/ChangeLog

@@ -3,10 +3,12 @@
 	* DbDataAdapter.cs: Update (): update the rows based on the
 	UpdateRowSource property. Process further based on the
 	RowUpdatedEvent handler argument's Status property.
-
 	Fixes bug #73587. Thanks to [email protected] (Ingo Bauersachs) for
 	bug report and patch.
 
+	* RowUpdatedEventArgs.cs: if custom error is not set, throw a
+	default error.
+
 2005-03-01  Sureshkumar T  <[email protected]>
 
 	* ConnectionStringsSectionHandler.cs: Added. configuration section

+ 5 - 1
mcs/class/System.Data/System.Data.Common/RowUpdatedEventArgs.cs

@@ -72,7 +72,11 @@ namespace System.Data.Common {
 		}
 
 		public Exception Errors {
-			get { return errors; }
+			get { 
+                                if (errors == null)
+                                        errors =  new DataException ("RowUpdatedEvent: No additional information is available!");
+                                return errors; 
+                        }
 			set { errors = value; }
 		}