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