From e72093e67d03309248873ec1a985f9c40eeb1e1d Mon Sep 17 00:00:00 2001 From: Dongyoung Kim Date: Mon, 4 Jan 2016 17:16:12 +0900 Subject: [PATCH] [Common] Add the example code for getting error message Change-Id: I0be92c7eff056d124732a48c8cbfe7304ede2dde --- include/tizen_error.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/include/tizen_error.h b/include/tizen_error.h index 8abd87c..a0e0923 100644 --- a/include/tizen_error.h +++ b/include/tizen_error.h @@ -491,6 +491,21 @@ extern "C" { * @return The error's message * * @see #tizen_error_e + * + * @code + * + * char* errMsg; + * location_manager_h location_handle; + * int result = location_manager_create(LOCATION_METHOD_GPS, &location_handle); + * + * if (LOCATIONS_ERROR_NONE != result) + * { + * errMsg = get_error_message(result); + * dlog_print(DLOG_INFO, "MyTag", "%s", errMsg); + * } + * + * @endcode + * */ char *get_error_message(int err); -- 2.7.4