Error cannot be catched on this.submitForm if user is offline in Acrobat Reader.
I have this javascript code in PDF file:
try {
this.submitForm({
cURL: url,
cCharset: "utf-8"
});
}
catch (e) {
app.alert("error");
}The "try catch" does not work if user is not connected to the network and this error appears in Adobe Acrobat Reader:

There are two possible solution in my head, but I don't know how to do it. I have read the documentation and could not resolve this:
Can I somehow disable(catch) this error message?
OR
Can I somehow check if the server is responding before submitting the form?
My desired behavior is to do nothing if the user is not connected to the network and send the form if user is connected.
I hope that someone helps me. Thanks.
