Fix : Remove exception handling codes at the sample code
[platform/framework/native/content.git] / inc / FCntVideoMetadata.h
index 2123d78..f475a59 100644 (file)
@@ -47,25 +47,26 @@ class _VideoMetadataImpl;
  * The following example demonstrates how to use the %VideoMetadata class.
  *
  * @code
+ * #include <FBase.h>
+ * #include <FContent.h>
+ * #include <FSystem.h>
+ *
+ * using namespace Tizen::Content;
+ *
  * result
  * MyClass::TestVideoMetadata(void)
  * {
  *             Tizen::Base::String contentPath = Tizen::System::Environment::GetMediaPath() + L"Videos/video.mp4";
  *             VideoMetadata* pVideoMeta = ContentManagerUtil::GetVideoMetaN(contentPath);
- *             TryReturn(pVideoMeta != null, GetLastResult(), "ContentManagerUtil::GetVideoMetaN failed.");
+ *             result r = GetLastResult();
  *
- *             // Width
  *             pVideoMeta->GetWidth();
- *
- *             // Height
  *             pVideoMeta->GetHeight();
- *
- *             // Duration
  *             pVideoMeta->GetDuration();
  *
  *             delete pVideoMeta;
  *
- *             return E_SUCCESS;
+ *             return r;
  * }
  * @endcode
  */