1 /// Copyright 2016 by Samsung Electronics, Inc.,
3 /// This software is the confidential and proprietary information
4 /// of Samsung Electronics, Inc. ("Confidential Information"). You
5 /// shall not disclose such Confidential Information and shall use
6 /// it only in accordance with the terms of the license agreement
7 /// you entered into with Samsung.
11 using System.Runtime.InteropServices;
13 namespace Tizen.Internals.Errors
18 public static class ErrorFacts
23 /// <returns></returns>
24 public static int GetLastResult()
26 return Interop.CommonError.GetLastResult();
32 /// <param name="errorCode"></param>
33 /// <returns></returns>
34 public static string GetErrorMessage(int errorCode)
36 IntPtr errorPtr = Interop.CommonError.GetErrorMessage(errorCode);
37 return Marshal.PtrToStringAuto(errorPtr);