Skip to content

Commit dfa19f7

Browse files
authored
Update File.Move exception details (#8726)
* Update File.Move exception details fixes dotnet/runtime#79213 * Apply suggestions from code review
1 parent 7288802 commit dfa19f7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

xml/System.IO/File.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3198,7 +3198,11 @@ The following example moves a file.
31983198
<exception cref="T:System.ArgumentNullException">
31993199
<paramref name="sourceFileName" /> or <paramref name="destFileName" /> is <see langword="null" />.</exception>
32003200
<exception cref="T:System.ArgumentException">.NET Framework and .NET Core versions older than 2.1: <paramref name="sourceFileName" /> or <paramref name="destFileName" /> is a zero-length string, contains only white space, or contains invalid characters. You can query for invalid characters by using the <see cref="M:System.IO.Path.GetInvalidPathChars" /> method.</exception>
3201-
<exception cref="T:System.UnauthorizedAccessException">The caller does not have the required permission.</exception>
3201+
<exception cref="T:System.UnauthorizedAccessException">The caller does not have the required permission.
3202+
3203+
-or-
3204+
3205+
The Operating System has failed to acquire an exclusive access to the destination file.</exception>
32023206
<exception cref="T:System.IO.PathTooLongException">The specified path, file name, or both exceed the system-defined maximum length. </exception>
32033207
<exception cref="T:System.IO.DirectoryNotFoundException">The path specified in <paramref name="sourceFileName" /> or <paramref name="destFileName" /> is invalid, (for example, it is on an unmapped drive).</exception>
32043208
<exception cref="T:System.NotSupportedException">

0 commit comments

Comments
 (0)