Exception Objects
- How-to
- Roland Smith
- PowerBuilder
- Thursday, 16 January 2020 07:03 PM UTC
I'm trying to figure out how setting an exception object in the 'throws' property of an object function works.
Does it negate the need for a try/catch in the function?
What happens when a runtime error occurs? Is there an event or function in the exception object that gets called?
Context:
C++ program uses PBNI to instantiate a PB object and calls a function in it. Works great until there is an exception. From what I can tell exceptions don't pass back to the calling C++ code. The C++ program aborts if the exception isn't handled by the PB code. Currently using try/catch but would like to use something more 'behind the scenes'.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.