Where should we catch exception
- In Layer Boundary (UI->BLL & BLL->DAL)
- In that methods where there is no interaction between Layers only some business logic p开发者_开发知识库resent
How do I write exception in Save/Delete where some DML statement executing?
- What should I write in DAL end?
- What should I write in BLL end?
- What should I write in UI end?
In Get/Load method How do we handle exception
- What should I write in BLL end?
- What should I write in UI end?
Should I catch System exception?
The general rule with exception handling is: only handle exceptions your layer will be able to deal with. If you can't, let the higher ones handle it.
精彩评论