The best way for handling exception when dealing with a database connection?

Options
- Implement a try/catch block that catches System.Exceptions.
- Implementing custom error page.
- Implement a try/catch block that catches individual exception types, such as SQLException.
- Display an error message.


CORRECT ANSWER : Implement a try/catch block that catches System.Exceptions.

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement