Skip to content

Commit 0f97636

Browse files
authored
Fix File.Move exceptions (#3865)
1 parent 48f758e commit 0f97636

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

xml/System.IO/File.xml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2475,11 +2475,12 @@ The following example moves a file.
24752475
24762476
]]></format>
24772477
</remarks>
2478-
<exception cref="T:System.IO.IOException">The destination file already exists.
2479-
2480-
-or-
2481-
2482-
<paramref name="sourceFileName" /> was not found.</exception>
2478+
<exception cref="T:System.IO.IOException">
2479+
<paramref name="destFileName" /> already exists.
2480+
</exception>
2481+
<exception cref="T:System.IO.FileNotFoundException">
2482+
<paramref name="sourceFileName" /> was not found.
2483+
</exception>
24832484
<exception cref="T:System.ArgumentNullException">
24842485
<paramref name="sourceFileName" /> or <paramref name="destFileName" /> is <see langword="null" />.</exception>
24852486
<exception cref="T:System.ArgumentException">
@@ -2552,6 +2553,9 @@ The following example moves a file.
25522553
]]></format>
25532554
</remarks>
25542555
<exception cref="T:System.IO.IOException">
2556+
<paramref name="destFileName" /> already exists and <paramref name="overwrite" /> is <see langword="false" />.
2557+
</exception>
2558+
<exception cref="T:System.IO.FileNotFoundException">
25552559
<paramref name="sourceFileName" /> was not found.</exception>
25562560
<exception cref="T:System.ArgumentNullException">
25572561
<paramref name="sourceFileName" /> or <paramref name="destFileName" /> is <see langword="null" />.</exception>

0 commit comments

Comments
 (0)