Suppose I have a Login.xaml module that will login to a website. I invoke it in Main.xaml. The Login module may success or failed due to several reasons.
The Login module can terminate, throw exception, show error message, etc;
Or the Login module pass these messages to Main module and let Main decide what to do next?
What’s the best practice for these two modules to work together?
Error handling in REFramework or your own custom process will need a bulletproof error handling approach. I have a tutorial to help you achieve what you are trying. Hope this helps you.