R
rodchar
hey all,
alright, so i have the basic 3-tier (logical) application and down in the
data layer i'm throwing an exception if 0 records are returned from the
database.
i have a try catch in the user interface (happens to be the console) and
that works fine. well, let's say i wanted to use my business layer in a web
app so i guess i'll put a try catch there as well?
or should i handle this in the business layer so i won't have to write
multiple try catches? how is this normally handled (no pun intended)? But if
i handle it in the business layer how will the different user interfaces know
an error has occurred?
thanks,
rodchar
alright, so i have the basic 3-tier (logical) application and down in the
data layer i'm throwing an exception if 0 records are returned from the
database.
i have a try catch in the user interface (happens to be the console) and
that works fine. well, let's say i wanted to use my business layer in a web
app so i guess i'll put a try catch there as well?
or should i handle this in the business layer so i won't have to write
multiple try catches? how is this normally handled (no pun intended)? But if
i handle it in the business layer how will the different user interfaces know
an error has occurred?
thanks,
rodchar