Author: krasnov
Date: 2006-03-15 10:42:39 -0500 (Wed, 15 Mar 2006)
New Revision: 58023
Modified:
trunk/mcs/class/System.Web/System.Web.Util/ChangeLog
trunk/mcs/class/System.Web/System.Web.Util/DataSourceResolver.cs
Log:
* DataSourceResolver.cs: corrected exceptions type in ResolveDataSource
Modified: trunk/mcs/class/System.Web/System.Web.Util/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Util/ChangeLog 2006-03-15
15:40:40 UTC (rev 58022)
+++ trunk/mcs/class/System.Web/System.Web.Util/ChangeLog 2006-03-15
15:42:39 UTC (rev 58023)
@@ -1,3 +1,8 @@
+2006-03-15 Vladimir Krasnov <[EMAIL PROTECTED]>
+
+ * DataSourceResolver.cs: corrected exceptions type in
+ ResolveDataSource
+
2006-02-01 Chris Toshok <[EMAIL PROTECTED]>
* WebEncoding.cs: CONFIGURATION_2_0 => NET_2_0, and use GetSection
Modified: trunk/mcs/class/System.Web/System.Web.Util/DataSourceResolver.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Util/DataSourceResolver.cs
2006-03-15 15:40:40 UTC (rev 58022)
+++ trunk/mcs/class/System.Web/System.Web.Util/DataSourceResolver.cs
2006-03-15 15:42:39 UTC (rev 58023)
@@ -63,7 +63,7 @@
PropertyDescriptorCollection pd = tl.GetItemProperties
(new PropertyDescriptor [0]);
if (pd == null || pd.Count == 0)
- throw new Exception ("The selected data source
did not contain any data members to bind to");
+ throw new HttpException ("The selected data
source did not contain any data members to bind to");
PropertyDescriptor member_desc = data_member == "" ?
pd [0] :
@@ -73,7 +73,7 @@
ds = member_desc.GetValue (member_list [0]) as
IEnumerable;
if (ds == null)
- throw new Exception ("A list corresponding to
the selected DataMember was not found");
+ throw new HttpException ("A list corresponding
to the selected DataMember was not found");
return ds;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches