A universal way to alert devleopers about errors?

It does not. That's why you may need separate except clauses for java vs. jython. See my later.py script module for some hints on how to handle this.