DCSIMG

 Subscribe in a reader

Exception handling - Guy kolbis

Browse by Tags

All Tags » Exception handling (RSS)
Are you tired of these errors: I know I am!!! So, what can we do about it? Simple, lets handle our unhandled exceptions. Exceptions can be raise from a different layers or tiers, however we always want to control them. Sometimes we want to ignore them and let them bubble, on other occasions we want to handle them and re-throw them and on other cases we want to handle them and swallow the exception. In this post I will talk about the last option. Usually when we are building a desktop application...
נשלח על ידי kolbis | 3 תגובה/ות
Exception handling is not an exact science, however there are some guidelines that one should follow. I have constructed a list of rules that in my opinion is common to all applications in terms of exception handling. As a rule, all exceptions in the application must be handled at the business layer level. Custom exceptions will be created to handle any application exceptions. Exceptions that may require special handling, a handler should be created. When Exception is handled an ID should be generated...
נשלח על ידי kolbis