Attempting to throw invoke exception