Java try...catch captures an instance of the exception