private static void checkForLastException(UploadPartInvoker invoker) { if (invoker.LastException != null) throw invoker.LastException; }