Why on the server processing the client data with the expectation of response are usually placed in a try catch?

Hello. Disassemble someone else's code and is often seen that when some data from the client via AJAX and the response pending, this is usually done via a try catch. I one person said it was because it can fall off the connection to the server. But if it will fall off, and the exception we get? So, why in processing the client data to use try catch?
June 3rd 19 at 18:59
0 answer

Find more questions by tags PHP