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.
10 using System.Runtime.InteropServices;
12 namespace Tizen.Internals.Errors
17 public static class ErrorFacts
22 /// <returns></returns>
23 public static int GetLastResult()
25 return Interop.CommonError.GetLastResult();
31 /// <param name="errorCode"></param>
32 /// <returns></returns>
33 public static string GetErrorMessage(int errorCode)
35 IntPtr errorPtr = Interop.CommonError.GetErrorMessage(errorCode);
36 return Marshal.PtrToStringAnsi(errorPtr);