add exception handle to URLParser