is it always going to be "Invalid URL"? maybe set it to t.getMessage()