S
Sweetiecakes
Hello
I'm a bit confused on how one should handle exceptions. I'm currently
building an ADO.NET Windows Forms application. I've built a class for
manipulating data within the database in question. This class is used
from forms. Let's assume that there is an SQL error: this will throw an
exception. Where should I handle it? How should I handle it? What to
show when giving an error message?
Is there any "centralized" way of handling exceptions: for example,
having a centralized exception handler catch everything, and show an
error message relative to the caught exception?
Thanks
I'm a bit confused on how one should handle exceptions. I'm currently
building an ADO.NET Windows Forms application. I've built a class for
manipulating data within the database in question. This class is used
from forms. Let's assume that there is an SQL error: this will throw an
exception. Where should I handle it? How should I handle it? What to
show when giving an error message?
Is there any "centralized" way of handling exceptions: for example,
having a centralized exception handler catch everything, and show an
error message relative to the caught exception?
Thanks