You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: dotnet/src/webdriver/PrintDocument.cs
+17
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,8 @@
20
20
usingSystem;
21
21
usingSystem.IO;
22
22
23
+
#nullable enable
24
+
23
25
namespaceOpenQA.Selenium
24
26
{
25
27
/// <summary>
@@ -31,6 +33,13 @@ public class PrintDocument : EncodedFile
31
33
/// Initializes a new instance of the <see cref="PrintDocument"/> class.
32
34
/// </summary>
33
35
/// <param name="base64EncodedDocument">The printed document as a Base64-encoded string.</param>
36
+
/// <exception cref="ArgumentNullException">If <paramref name="base64EncodedDocument"/> is <see langword="null"/>.</exception>
37
+
/// <exception cref="FormatException">
38
+
/// <para>The length of <paramref name="base64EncodedDocument"/>, ignoring white-space characters, is not zero or a multiple of 4.</para>
39
+
/// <para>-or-</para>
40
+
/// <para>The format of <paramref name="base64EncodedDocument"/> is invalid. <paramref name="base64EncodedDocument"/> contains a non-base-64 character,
41
+
/// more than two padding characters, or a non-white space-character among the padding characters.</para>
@@ -39,6 +48,14 @@ public PrintDocument(string base64EncodedDocument) : base(base64EncodedDocument)
39
48
/// Saves this <see cref="PrintDocument"/> as a PDF formatted file, overwriting the file if it already exists.
40
49
/// </summary>
41
50
/// <param name="fileName">The full path and file name to save the printed document to.</param>
51
+
/// <exception cref="ArgumentException">
52
+
/// <para>If <paramref name="fileName"/> is <see langword="null"/> or whitespace.</para>
53
+
/// <para>-or-</para>
54
+
/// <para><paramref name="fileName"/> refers to a non-file device, such as "con:", "com1:", "lpt1:", etc. in an NTFS environment.</para>
55
+
/// </exception>
56
+
/// <exception cref="NotSupportedException"><paramref name="fileName"/> refers to a non-file device, such as "con:", "com1:", "lpt1:", etc. in a non-NTFS environment.</exception>
57
+
/// <exception cref="DirectoryNotFoundException">The specified path is invalid, such as being on an unmapped drive.</exception>
58
+
/// <exception cref="PathTooLongException">The specified path, file name, or both exceed the system-defined maximum length.</exception>
0 commit comments