Hello gurus,
I have an ObjectDataSource in an ASPX page calling CRUD operations from a business logic class. When exceptions occur during those operations, I'd like to inform the users of the errors as well as logging them. But I want a clear separation between my business logic and presentation layer. I know that Selected, Inserted, Updated, Deleted events provide a parameter of type ObjectDataSourceStatusEventArgs which includes a property "Exception" for exceptions occurred.
Are handlers of these events the best place to handle the exceptions for ObjectDataSource or is there a better way? Does the Exception property of the event parameter chain all the exceptions occurred during the operation?
Any comments or suggestions are welcome,
Thanks,
Cullen