Log.Error(Globals.LogTag, "No connection " + (ConnectionError)ret);
return null;
}
+ else if ((ConnectionError)ret == ConnectionError.InvalidParameter)
+ {
+ throw new InvalidOperationException("Invalid handle");
+ }
else
{
Log.Error(Globals.LogTag, "It failed to get current profile, " + (ConnectionError)ret);
/// <feature>http://tizen.org/feature/network.wifi</feature>
/// <exception cref="System.NotSupportedException">Thrown when a feature is not supported.</exception>
/// <exception cref="System.UnauthorizedAccessException">Thrown when a permission is denied.</exception>
- /// <exception cref="System.ArgumentException">Thrown when a value is an invalid parameter.</exception>
/// <exception cref="System.InvalidOperationException">Thrown when a profile instance is invalid or when a method fails due to an invalid operation.</exception>
/// <exception cref="System.ObjectDisposedException">Thrown when an operation is performed on a disposed object.</exception>
public void Refresh()
if ((ConnectionError)ret != ConnectionError.None)
{
Log.Error(Globals.LogTag, "It failed to get network interface name, " + (ConnectionError)ret);
+ if ((ConnectionError)ret == ConnectionError.InvalidParameter)
+ {
+ throw new InvalidOperationException("Invalid handle");
+ }
ConnectionErrorFactory.CheckFeatureUnsupportedException(ret, "http://tizen.org/feature/network.telephony " + "http://tizen.org/feature/network.wifi " + "http://tizen.org/feature/network.tethering.bluetooth " + "http://tizen.org/feature/network.ethernet");
ConnectionErrorFactory.CheckPermissionDeniedException(ret, "(http://tizen.org/privilege/network.get)");
ConnectionErrorFactory.CheckHandleNullException(ret, (ProfileHandle == IntPtr.Zero), "ProfileHandle may have been disposed or released");
/// <feature>http://tizen.org/feature/network.ethernet</feature>
/// <exception cref="System.NotSupportedException">Thrown when a feature is not supported.</exception>
/// <exception cref="System.UnauthorizedAccessException">Thrown when a permission is denied.</exception>
- /// <exception cref="System.ArgumentException">Thrown when a value is an invalid parameter.</exception>
/// <exception cref="System.OutOfMemoryException">Thrown when memory is not enough to continue execution.</exception>
/// <exception cref="System.InvalidOperationException">Thrown when a connection instance is invalid or when a method fails due to an invalid operation.</exception>
public static ConnectionProfile GetCurrentProfile()