Forum Discussion
tristaanogre
13 years agoEsteemed Contributor
Actually, when I tried this, even the Evaluate call did not log the expected message. I got, instead, a log message saying it was unable to evaluate Foo. Evaluate is supposed to, as I understand it, return an object.
I think that re-raising using Runner.CallMethod will not work because you're trying to call out to a method without going through the specific scripting engine. Perhaps a better method would be that, in your "foo" method, instead of it being a procedure, make it a function that returns a boolean on an exception. Then you're Runner.CallMethod can test for a true or false and, if false, log an error.
I think that re-raising using Runner.CallMethod will not work because you're trying to call out to a method without going through the specific scripting engine. Perhaps a better method would be that, in your "foo" method, instead of it being a procedure, make it a function that returns a boolean on an exception. Then you're Runner.CallMethod can test for a true or false and, if false, log an error.
Related Content
- 4 years ago
Recent Discussions
- 24 hours ago