From: Seongjun Yim Date: Thu, 24 Oct 2013 10:20:49 +0000 (+0900) Subject: modify exception X-Git-Tag: submit/tizen_2.2/20131107.062229~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=46969a41dbea4e88e5b35bddeb02aeed7edf7ece;p=framework%2Fosp%2Fweb.git modify exception Change-Id: I107d1c8e599d047aa8baf196935b4c3f7b2f9e14 Signed-off-by: Seongjun Yim --- diff --git a/src/controls/FWebCtrl_EflWebkit.cpp b/src/controls/FWebCtrl_EflWebkit.cpp index 4504a4f..aeedd30 100755 --- a/src/controls/FWebCtrl_EflWebkit.cpp +++ b/src/controls/FWebCtrl_EflWebkit.cpp @@ -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 pcertPath(_StringConverter::CopyToCharArrayN(certPath)); - SysTryReturn(NID_WEB_CTRL, pcertPath.get(), GetLastResult(), GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult())); + std::unique_ptr 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 pIconPath(_StringConverter::CopyToCharArrayN(iconPath)); diff --git a/src/controls/FWebCtrl_WebImpl.cpp b/src/controls/FWebCtrl_WebImpl.cpp index 271d1b9..666fc51 100755 --- a/src/controls/FWebCtrl_WebImpl.cpp +++ b/src/controls/FWebCtrl_WebImpl.cpp @@ -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: