Updated java exception clauses

This should resolve #1011, adding exception clauses to all applicable methods in the WT API.