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 present
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?
views:
31answers:
1
+2
A:
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.
Pierreten
2010-03-11 05:03:58