shashirajraja/shopping-cart

sendRedirect potnetial IOExcpetion thrown with no try-catch

Opened this issue · 0 comments

Describe the bug
A clear and concise description of what the bug is.
sendRedirect() is called with no try-catch clause which has th epotential to throw an IOException.
To Reproduc e
Steps to reproduce the behavior:

  1. IF there is a netowork or issue with the servlet container. an IOException error is thrown.

Expected behavior
A try-catych clause to handle cases of these errors.

Desktop (please complete the following information):

  • Linux Ubuntu
  • Browser [Chrome]
  • Version 123.0.6312.106