Catch and return Exception for TryCallMethod, TryGetProperty, TrySetProperty methods, passed back to the browsersubprocess though currently not displayed in the UI

This commit is contained in:
amaitland
2014-09-02 10:57:47 +10:00
parent ac28397797
commit 3e5a3ae0cb
5 changed files with 48 additions and 19 deletions
@@ -49,7 +49,8 @@ namespace CefSharp
auto browserProxy = CefAppWrapper::Instance->CreateBrowserProxy();
Object^ result;
auto success = browserProxy->GetProperty(_object->Id, memberName, result);
String^ exception;
auto success = browserProxy->GetProperty(_object->Id, memberName, result, exception);
return result;
};
@@ -57,6 +58,7 @@ namespace CefSharp
{
auto browserProxy = CefAppWrapper::Instance->CreateBrowserProxy();
browserProxy->SetProperty(_object->Id, memberName, value);
String^ exception;
browserProxy->SetProperty(_object->Id, memberName, value, exception);
};
}