modify exception
authorSeongjun Yim <se201.yim@samsung.com>
Thu, 24 Oct 2013 10:20:49 +0000 (19:20 +0900)
committerSeongjun Yim <se201.yim@samsung.com>
Thu, 24 Oct 2013 10:20:49 +0000 (19:20 +0900)
Change-Id: I107d1c8e599d047aa8baf196935b4c3f7b2f9e14
Signed-off-by: Seongjun Yim <se201.yim@samsung.com>
src/controls/FWebCtrl_EflWebkit.cpp
src/controls/FWebCtrl_WebImpl.cpp

index 4504a4f..aeedd30 100755 (executable)
@@ -153,10 +153,10 @@ _EflWebkit::SetWebConfiguration(void) const
        ewk_context_additional_plugin_path_set(pContext, PLUGIN_DIRECTORY_PATH);
 
        String certPath(_CertService::GetCertificateCrtFilePath());
-       std::unique_ptr<char[]> pcertPath(_StringConverter::CopyToCharArrayN(certPath));
-       SysTryReturn(NID_WEB_CTRL, pcertPath.get(), GetLastResult(), GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
+       std::unique_ptr<char[]> pCertPath(_StringConverter::CopyToCharArrayN(certPath));
+       SysTryReturn(NID_WEB_CTRL, pCertPath.get(), GetLastResult(), GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
 
-       ewk_context_certificate_file_set(pContext, pcertPath.get());
+       ewk_context_certificate_file_set(pContext, pCertPath.get());
 
        String iconPath(App::App::GetInstance()->GetAppRootPath() + ICON_DB_DIRECTORY_PATH + ICON_DB_FILE_NAME);
        std::unique_ptr<char[]> pIconPath(_StringConverter::CopyToCharArrayN(iconPath));
index 271d1b9..666fc51 100755 (executable)
@@ -2293,7 +2293,7 @@ _WebImpl::_WebImpl(Web* pWeb, Tizen::Ui::_Control* pCore)
 _WebImpl::~_WebImpl()
 {
        _WebManager* pWebManager = _WebManager::GetInstance();
-       SysTryCatch(NID_WEB_CTRL, pWebManager, , E_OUT_OF_MEMORY, "[%s] Memory allocation failed.", GetErrorMessage(E_OUT_OF_MEMORY));
+       SysTryCatch(NID_WEB_CTRL, pWebManager, , E_SYSTEM, "[%s] Failed to get the _ControlManager instance.", GetErrorMessage(E_SYSTEM));
        pWebManager->RemoveWeb(reinterpret_cast< int >(this));
 
 CATCH: