-/*
+/*
* Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the License);
/// <summary>
/// Utility method to check for error, returns false if failed and print warning messages
/// </summary>
- /// <returns>true in case of no error, false otherwise</returns>
+ /// <returns>Returns true in case of no error, otherwise false.</returns>
internal static bool WarnIfFailed(this Interop.ErrorCode err, string msg, [CallerFilePath] string file = "", [CallerMemberName] string func = "", [CallerLineNumber] int line = 0)
{
if (err.IsFailed())
/// <summary>
/// Utility method to check for error, returns false if failed and throw exception
/// </summary>
- /// <returns>true in case of no error</returns>
+ /// <returns>Returns true in case of no error, otherwise false.</returns>
internal static bool ThrowIfFailed(this Interop.ErrorCode err, string msg, [CallerFilePath] string file = "", [CallerMemberName] string func = "", [CallerLineNumber] int line = 0)
{
if (err.IsFailed())
default: return new System.InvalidOperationException(errMessage);
}
}
-}
\ No newline at end of file
+}