Handle exception in get_request_line