Don't catch and print, you should either throw an exception or return the error to the user in the response.