MATLAB: Is there a way to catch errors with out using try catch statements

error handlingguitry/catch

Hi,
I have created a GUI and deployed it. It works well but sometimes it gives error but user can't see it. Is there a way to show any kind of error to the user by using message box?
In other words I want to catch all errors with out using try catch statements because I have lots of functions in my program and writing try catch for all of them is time consuming.

Best Answer

No, writing TRY-CATCH blocks is not time-consuming. It is required to catch errors and of course you cannot catch all problems automagically.
A reliable program requires an error handling and at least including the main function should be the absolut minimum.