Coffeehouse Post

Single Post Permalink

View Thread: A good Tutorial on Error Handling
  • User profile image
    Ion Todirel

    I have a utility function that loads up lists in memory. lets call it RefreshList, if there is any error happening in this function i need to display a clear message like "Could not reload the lists, [Reason]" but where do i put the code to display the message 1) In the function? 2) Outside the function?. i initialy decided to put it inside the function since i call this function from several places in the application, but after that i see that i needed to try...catch outside the function because if there is an error reloading the lists i want to disable some menus (error handling). so do i have tones of such error handling design questions.