J
Jarsinio
I have some doubts about how managed exception in a VB.net aplication.
In my aplicattion I have 3 clases:
One clase is the UI ( Windows Forms). This class call a second clase
who perform an action ( for example add a item in the database). The
last class is the one who conect to the DB ( ms access)
How I should manage an exception ?
* What I must do when an exception occurs when the class number 3 wants
to make a DB coneection an faild ? or ( when an exception occurs when
the class number 2 wants to insert a record in e DB an faild ?)
* I need to throw the exception to class 2 and the class 2 to de User
Interfece's class?
* Where I should LOG the exception?
* I need to create my Own Exception?
* The User Interface should have the "intelligence" to know all
posibles exceptions?
Please I need help..
Thanks
Alan Garbo
In my aplicattion I have 3 clases:
One clase is the UI ( Windows Forms). This class call a second clase
who perform an action ( for example add a item in the database). The
last class is the one who conect to the DB ( ms access)
How I should manage an exception ?
* What I must do when an exception occurs when the class number 3 wants
to make a DB coneection an faild ? or ( when an exception occurs when
the class number 2 wants to insert a record in e DB an faild ?)
* I need to throw the exception to class 2 and the class 2 to de User
Interfece's class?
* Where I should LOG the exception?
* I need to create my Own Exception?
* The User Interface should have the "intelligence" to know all
posibles exceptions?
Please I need help..
Thanks
Alan Garbo