In Embedded Python, exceptions flow back-and-forth between ObjectScript and Python as you'd expect.
If your Python code raises an exception, but does not handle it, then the exception is passed to the ObjectScript side. And vice-versa. In your example, I'm not sure why you're handling the exception in python and then returning an exception object to the caller. Why not just not catch the exception and let it get passed along to the ObjectScript side?
- Log in to post comments