471,317 Members | 1,514 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,317 software developers and data experts.

Exception handling

In my enterprise application I'd like my DataAccess layer to be responsible
for handling all database error situations and to basically throw custom
exceptions according to whether db connection is ok or not, that is,
cDBDownException if ok or cDBException if not ok. These two exceptions would
provide all information about the original cause etc.

1. Is this a wise exception handling policy?

2. We use both Oracle and SQL Server. Which exceptions do I catch to
ascertain that we've lost contact with the db?

Kind regards.

Jul 21 '05 #1
0 684

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by adi | last post: by
6 posts views Thread by Daniel Wilson | last post: by
3 posts views Thread by Master of C++ | last post: by
2 posts views Thread by tom | last post: by
9 posts views Thread by C# Learner | last post: by
44 posts views Thread by craig | last post: by
41 posts views Thread by Zytan | last post: by
1 post views Thread by George2 | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.