7 years since the original post ... has Adobe implemented FormCalc try/catch error handling by now?
I'm wondering about this as well. If I do:
var responseMsg = Post(apiUrl, body, format);
And everything is fine,then I get a json respomse with "success": true etc, but when something is wrong with my post to the API I get a popup error saying something like "Script failed (language is formcalc; context is... and Error: Error attempting to read from file https:// and so on. Really great exception handling there