Catching exception in webdev doPost

The exception being thrown might be a Java exception, rather than a Python exception?