handling errors with java exceptions 6355620