From: xb.teng Date: Fri, 12 May 2017 02:53:07 +0000 (+0800) Subject: nui exception handling check X-Git-Tag: nui_0.2.41~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=380a990b9be450025ca885707d9eae66be2fbfaf;p=platform%2Fcore%2Fcsapi%2Fnui.git nui exception handling check Change-Id: Ib96e072704943c8fc92dd549745cc9b263e697f4 --- diff --git a/Tizen.NUI/src/internal/NDalicPINVOKE.cs b/Tizen.NUI/src/internal/NDalicPINVOKE.cs old mode 100644 new mode 100755 index a3876a4..ac7a9b4 --- a/Tizen.NUI/src/internal/NDalicPINVOKE.cs +++ b/Tizen.NUI/src/internal/NDalicPINVOKE.cs @@ -93,7 +93,7 @@ class NDalicPINVOKE { static void SetPendingArgumentNullException(string message, string paramName) { global::System.Exception e = SWIGPendingException.Retrieve(); if (e != null) message = message + " Inner Exception: " + e.Message; - SWIGPendingException.Set(new global::System.ArgumentNullException(paramName, message)); + SWIGPendingException.Set(new global::System.ArgumentNullException(message, paramName)); } static void SetPendingArgumentOutOfRangeException(string message, string paramName) { global::System.Exception e = SWIGPendingException.Retrieve(); diff --git a/Tizen.NUI/src/internal/dotnetcore/AddedException.cs b/Tizen.NUI/src/internal/dotnetcore/AddedException.cs old mode 100644 new mode 100755 index d59a4ef..5e05865 --- a/Tizen.NUI/src/internal/dotnetcore/AddedException.cs +++ b/Tizen.NUI/src/internal/dotnetcore/AddedException.cs @@ -20,17 +20,17 @@ namespace System { public ApplicationException() { - new global::System.InvalidCastException(); + new global::System.ApplicationException(); } public ApplicationException(string message) { - new global::System.InvalidCastException(message); + new global::System.ApplicationException(message); } public ApplicationException(string message, Exception innerException) { - new global::System.InvalidCastException(message, innerException); + new global::System.ApplicationException(message, innerException); } } @@ -38,17 +38,17 @@ namespace System { public SystemException() { - new global::System.InvalidCastException(); + new global::System.SystemException(); } public SystemException(string message) { - new global::System.InvalidCastException(message); + new global::System.SystemException(message); } public SystemException(string message, Exception innerException) { - new global::System.InvalidCastException(message, innerException); + new global::System.SystemException(message, innerException); } } } diff --git a/Tizen.NUI/src/public/Animation.cs b/Tizen.NUI/src/public/Animation.cs old mode 100644 new mode 100755 index badb901..b3f40ce --- a/Tizen.NUI/src/public/Animation.cs +++ b/Tizen.NUI/src/public/Animation.cs @@ -379,7 +379,7 @@ namespace Tizen.NUI Property _prop = new Property(target, _str); if (_prop.propertyIndex == Property.INVALID_INDEX) { - throw new System.Exception("second argument string property is invalid parameter!"); + throw new System.ArgumentException("second argument string property is invalid parameter!"); } PropertyType propertyType = target.GetPropertyType(_prop.propertyIndex); @@ -423,7 +423,7 @@ namespace Tizen.NUI Property _prop = new Property(target, _str); if (_prop.propertyIndex == Property.INVALID_INDEX) { - throw new System.Exception("second argument string property is invalid parameter!"); + throw new System.ArgumentException("second argument string property is invalid parameter!"); } PropertyType propertyType = target.GetPropertyType(_prop.propertyIndex); @@ -467,7 +467,7 @@ namespace Tizen.NUI Property _prop = new Property(target, _str); if (_prop.propertyIndex == Property.INVALID_INDEX) { - throw new System.Exception("second argument string property is invalid parameter!"); + throw new System.ArgumentException("second argument string property is invalid parameter!"); } PropertyType propertyType = target.GetPropertyType(_prop.propertyIndex); @@ -512,7 +512,7 @@ namespace Tizen.NUI Property _prop = new Property(target, _str); if (_prop.propertyIndex == Property.INVALID_INDEX) { - throw new System.Exception("second argument string property is invalid parameter!"); + throw new System.ArgumentException("second argument string property is invalid parameter!"); } PropertyType propertyType = target.GetPropertyType(_prop.propertyIndex); @@ -557,7 +557,7 @@ namespace Tizen.NUI Property _prop = new Property(target, _str); if (_prop.propertyIndex == Property.INVALID_INDEX) { - throw new System.Exception("second argument string property is invalid parameter!"); + throw new System.ArgumentException("second argument string property is invalid parameter!"); } if (alphaFunction != null) @@ -590,7 +590,7 @@ namespace Tizen.NUI Property _prop = new Property(target, _str); if (_prop.propertyIndex == Property.INVALID_INDEX) { - throw new System.Exception("second argument string property is invalid parameter!"); + throw new System.ArgumentException("second argument string property is invalid parameter!"); } Tizen.NUI.TimePeriod time = new Tizen.NUI.TimePeriod(MilliSecondsToSeconds(startTime), MilliSecondsToSeconds(endTime - startTime));