{
try
{
-
if (bundle != null)
{
NativeServer.SendCommandReplyBundle(serverHandle, ReceiverId, _requestId, result, bundle.SafeBundleHandle)
.ThrowIfError("Failed to response command.");
}
}
+ catch (ArgumentException)
+ {
+ throw new InvalidOperationException("Server is not running");
+ }
finally
{
OnResponseCompleted();
else
{
NativeClient.SendCustomEventReply(clientHandle, ReceiverId, _requestId, result, IntPtr.Zero)
- .ThrowIfError("Failed to repose event.");
+ .ThrowIfError("Failed to response event.");
}
}
+ catch (ArgumentException)
+ {
+ throw new InvalidOperationException("Server is not running");
+ }
finally
{
OnResponseCompleted();
/// <param name="category">The search category.</param>
/// <param name="keyword">The search keyword.</param>
/// <param name="bundle">The extra data.</param>
+ /// <exception cref="ArgumentException">
+ /// <paramref name="type"/> or <paramref name="category"/> is not valid.
+ /// </exception>
+ /// <exception cref="ArgumentNullException"><paramref name="keyword"/> is null.</exception>
/// <since_tizen> 5 </since_tizen>
public MediaControlSearchCondition(MediaControlContentType type, MediaControlSearchCategory category,
string keyword, Bundle bundle)
/// <param name="type" > The search type.</param>
/// <param name="keyword">The search keyword.</param>
/// <param name="bundle">The extra data.</param>
+ /// <exception cref="ArgumentException"><paramref name="type"/> is not valid.</exception>
+ /// <exception cref="ArgumentNullException"><paramref name="keyword"/> is null.</exception>
/// <since_tizen> 5 </since_tizen>
public MediaControlSearchCondition(MediaControlContentType type, string keyword, Bundle bundle)
{