java exceptions need to be wrapped to be re-raised