diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2005-01-14 20:03:07 +0300 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2005-01-14 20:03:07 +0300 |
commit | acd4da0ec66d9260a40901bd30378a893f64f429 (patch) | |
tree | 76b8c9ce787529594435dc6aa7c7b586778ec186 /mcs/class/System.Data/System.Data.Common/DbDataPermissionAttribute.cs | |
parent | 303719101a027224d6ca22376d653e52ef85a55f (diff) |
2005-01-14 Atsushi Enomoto <atsushi@ximian.com>
* DbDataPermissionAttribute.cs, PermissionHelper.cs :
fixed some incompatible type of exception between 2.0 and 1.x.
* DataContainer.cs :
Wrap exceptions thrown by SetValue() within ArgumentException.
* SqlClientPermissionTest.cs, SqlClientPermissionAttributeTest.cs:
Fixed some incompatible type of exception between 2.0 and 1.1.
* OleDbPermissionTest.cs, OleDbPermissionAttributeTest.cs:
Fixed some incompatible type of exception between 2.0 and 1.1.
* OdbcPermissionTest.cs, OdbcPermissionAttributeTest.cs:
Fixed some incompatible type of exception between 2.0 and 1.1.
* DBDataPermissionTest.cs, DBDataPermissionAttributeTest.cs:
Fixed some incompatible type of exception between 2.0 and 1.1.
svn path=/trunk/mcs/; revision=38945
Diffstat (limited to 'mcs/class/System.Data/System.Data.Common/DbDataPermissionAttribute.cs')
-rw-r--r-- | mcs/class/System.Data/System.Data.Common/DbDataPermissionAttribute.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mcs/class/System.Data/System.Data.Common/DbDataPermissionAttribute.cs b/mcs/class/System.Data/System.Data.Common/DbDataPermissionAttribute.cs index ad717d1955f..5c43eb69c61 100644 --- a/mcs/class/System.Data/System.Data.Common/DbDataPermissionAttribute.cs +++ b/mcs/class/System.Data/System.Data.Common/DbDataPermissionAttribute.cs @@ -91,7 +91,11 @@ namespace System.Data.Common { set { if (!Enum.IsDefined (typeof (KeyRestrictionBehavior), value)) { string msg = Locale.GetText ("Unknown value."); +#if NET_2_0 throw new ArgumentOutOfRangeException ("KeyRestrictionBehavior", value, msg); +#else + throw new ArgumentException ("KeyRestrictionBehavior", msg); +#endif } keyRestrictionBehavior = value; } |