Fix : Remove exception handling codes at the sample code
[platform/framework/native/content.git] / inc / FCntContentInfo.h
index c0bffcc..0fe1fcc 100644 (file)
@@ -59,25 +59,27 @@ class _ContentInfoImpl;
  * The following example demonstrates how to use the %ContentInfo class.
  *
  * @code
+ * #include <FApp.h>
+ * #include <FBase.h>
+ * #include <FContent.h>
+ * #include <FSystem.h>
+ *
+ * using namespace Tizen::Content;
+ *
  * result
  * MyClass::TestContentInfo(void)
  * {
- *             result r = E_SUCCESS;
- *
- *             ContentId contentId;
  *             ContentManager contentManager;
- *             r = contentManager.Construct();
- *             TryReturn(!IsFailed(r), r, "Construct failed.");
+ *             result r = contentManager.Construct();
  *
  *             ImageContentInfo imageContentInfo;
  *             r = imageContentInfo.Construct(null);
- *             TryReturn(!IsFailed(r), r, "Construct failed.");
  *
  *             Tizen::Base::String sourcePath = Tizen::App::App::GetInstance()->GetAppRootPath() + L"data/flower.jpg";
  *             Tizen::Base::String destPath = Tizen::System::Environment::GetMediaPath() + L"Images/flower.jpg";
  *
- *             contentId = contentManager.CreateContent(sourcePath, destPath, false, &imageContentInfo);
- *             TryReturn(Tizen::Base::UuId::GetInvalidUuId() != contentId, GetLastResult(), "CreateContent failed.");
+ *             ContentId contentId = contentManager.CreateContent(sourcePath, destPath, false, &imageContentInfo);
+ *             r = GetLastResult();
  *
  *             return r;
  * }