refactored emitted code for public and private methods by moving try/catch when calling private method from public method to the private method itself. This should allow us to implement passing exceptions back through endpoint calls, which bypass the public method.