Link to home
Start Free TrialLog in
Avatar of shepp_it
shepp_it

asked on

Overriding doGet / doPost method from HttpServlet that throws SQLException

As you know, both doGet and doPost from HTTPServlet throw ServletException and IOException. I created a class that extends HttpServlet and overrides doGet and doPost method, but I need these methods to throw SQLException in addition to ServletException and IOException. I understand that the concept of "overriding" includes overriding exceptions to be thrown, but is there any way I can throw SQLException from doGet and doPost?
ASKER CERTIFIED SOLUTION
Avatar of Hegemon
Hegemon
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial