Change-Id: I39a5ff945c2544b2a0b1c4ed7640e99092cd21ac
}
else if ((OAuth2Error)error == OAuth2Error.ValueNotFound)
{
- return new Exception("Value not found");
+ return new ArgumentException("Value not found");
}
else
{
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;