Add doxygen description and ArgumaentException case
authorjkjo92 <jkjo92@samsung.com>
Tue, 17 Jan 2017 11:39:50 +0000 (20:39 +0900)
committerjkjo92 <jkjo92@samsung.com>
Tue, 17 Jan 2017 11:39:50 +0000 (20:39 +0900)
Change-Id: I39a5ff945c2544b2a0b1c4ed7640e99092cd21ac

src/Tizen.Account.OAuth2/Tizen.Account.OAuth2/OAuth2ErrorFactory.cs [changed mode: 0644->0755]
src/Tizen.Account.OAuth2/Tizen.Account.OAuth2/TokenResponse.cs [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index aba1f8a..08569f6
@@ -116,7 +116,7 @@ namespace Tizen.Account.OAuth2
             }
             else if ((OAuth2Error)error == OAuth2Error.ValueNotFound)
             {
-                return new Exception("Value not found");
+                return new ArgumentException("Value not found");
             }
             else
             {
old mode 100644 (file)
new mode 100755 (executable)
index fd93858..ded80ea
@@ -62,11 +62,10 @@ namespace Tizen.Account.OAuth2
         public RefreshToken RefreshToken { get; internal set; }
 
         /// <summary>
-        /// Custom key-value parameter received from service provider
+        /// Gets the value of the key received from service provider
         /// </summary>
-        /// <remarks>
-        /// The return value can be null depending on the server specifications.
-        /// </remarks>
+        /// <returns>The value of respecitve key </returns>
+        /// <exception cref="System.ArgumentException">Thrown when the key does not exist or when there is an invalid parameter.</exception>
         public string GetCustomValue(string key)
         {
             IntPtr value;