Currently in my javascript remoting calls I check for if (event.status===true)
in the callback. I handle any errors in an else
. However, it seems it also throws an exception.
Example: [Error] Visualforce Remoting Exception: Unable to connect to the server (communication failure). Object
Is it best practice to wrap JS remoting calls in a try/catch
as well? Or do I just let these exceptions display on the console since I'm handling them in the else
?