[Common] Add the example code for getting error message 91/56091/2 accepted/tizen/mobile/20160105.044444 accepted/tizen/tv/20160105.044458 accepted/tizen/wearable/20160105.044523 submit/tizen/20160105.010457 submit/tizen_common/20160104.085226 submit/tizen_common/20160106.031414
authorDongyoung Kim <dydot1.kim@samsung.com>
Mon, 4 Jan 2016 08:16:12 +0000 (17:16 +0900)
committerDongyoung Kim <dydot1.kim@samsung.com>
Mon, 4 Jan 2016 08:22:32 +0000 (17:22 +0900)
Change-Id: I0be92c7eff056d124732a48c8cbfe7304ede2dde

include/tizen_error.h

index 8abd87ce48d72a248b955c33314c6f8f9187956f..a0e09230dbf0cd848fde0bc2eb0199a71047fdb3 100644 (file)
@@ -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);