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
@@ -25,7 +25,8 @@ namespace CefSharp
auto browserProxy = CefAppWrapper::Instance->CreateBrowserProxy();
Object^ result;
auto success = browserProxy->CallMethod(_ownerId, _javascriptMethod->JavascriptName, parameters, result);
String^ exception;
auto success = browserProxy->CallMethod(_ownerId, _javascriptMethod->JavascriptName, parameters, result, exception);
return result;
}
}