This is temporary so that other device APIs can access
the error features during the implementation phase.
Signed-off-by: Sidharth Gupta <sid92.gupta@samsung.com>
Change-Id: Idc7f99d845878778d407eb6c62147fce1ac0ab06
namespace Tizen.Internals.Errors
{
- internal enum ErrorCode : int
+ public enum ErrorCode : int
{
None = 0, // 0, /**< Successful */
NotPermitted = -1, // -EPERM, /**< Operation not permitted */
/// <summary>
///
/// </summary>
- internal static class ErrorFacts
+ public static class ErrorFacts
{
/// <summary>
///
/// </summary>
/// <returns></returns>
- internal static int GetLastResult()
+ public static int GetLastResult()
{
return Interop.CommonError.GetLastResult();
}
/// </summary>
/// <param name="errorCode"></param>
/// <returns></returns>
- internal static string GetErrorMessage(int errorCode)
+ public static string GetErrorMessage(int errorCode)
{
IntPtr errorPtr = Interop.CommonError.GetErrorMessage(errorCode);
return Marshal.PtrToStringAuto(errorPtr);