need to implement a global error handling, so maybe you can help out with the following example...
i have this code:
public bool IsUserA
Two golden rules:
Remember that an exception indicates that something has gone wrong, and that particular something may not be what you think. (Out of memory, stack overflow, 3rd party service gone down, botched deployment resulting in missing assemblies, mis-configuration, security exceptions etc).
With very few exceptions, the only place you should see Pokemon exception handling is at the topmost level of your code, where the exception should be published somewhere. For example, in the Application_Error method in your global.asax file.
Here are some links for you that you may find helpful: