I have a question about how to properly deal with errors. I am working on a three tiered application. If an error is created on the data tier, I would like to pass the error to the business tier and process it there. What is the best method to accomplish this? I am using .net 2.0 and visual studio 2005.
Thanks for any advice
jason
Use a
Try...Catchin your business-layer with your calls to your data-layer within the Try.If you still want to use
Try...Catchin your data-layer then you need toThrow(to preserve stacktrace) orThrow exwithin the Catch, otherwise don’t useTry...Catchin your data-layer at all.