Qvera uses Rhino Javascript and can call java. Rhino does return the Java exceptions. The following link has more information and examples of how it is returned:
https://developer.mozilla.org/en-US/docs/Rhino/Scripting_Java#Java_Exceptions
This web page shows how to retrieve JavaScript errors.
http://www.w3schools.com/js/js_errors.asp