(refs #7326) Better handling of exceptions in Java->SCL interface