Skip to content

Commit 639e8ca

Browse files
committed
Docs for ArgumentNullException methods
1 parent 73cb988 commit 639e8ca

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dotnet/src/webdriver/ICookieJar.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
// under the License.
1818
// </copyright>
1919

20+
using System;
2021
using System.Collections.ObjectModel;
2122

2223
namespace OpenQA.Selenium
@@ -35,6 +36,7 @@ public interface ICookieJar
3536
/// Adds a cookie to the current page.
3637
/// </summary>
3738
/// <param name="cookie">The <see cref="Cookie"/> object to be added.</param>
39+
/// <exception cref="ArgumentNullException">If <paramref name="cookie"/> is <see langword="null"/>.</exception>
3840
void AddCookie(Cookie cookie);
3941

4042
/// <summary>
@@ -43,18 +45,22 @@ public interface ICookieJar
4345
/// <param name="name">The name of the cookie to retrieve.</param>
4446
/// <returns>The <see cref="Cookie"/> containing the name. Returns <see langword="null"/>
4547
/// if no cookie with the specified name is found.</returns>
48+
/// <exception cref="ArgumentNullException">If <paramref name="name"/> is <see langword="null"/>.</exception>
49+
/// <exception cref="NoSuchCookieException">If <paramref name="name"/> is not found.</exception>
4650
Cookie GetCookieNamed(string name);
4751

4852
/// <summary>
4953
/// Deletes the specified cookie from the page.
5054
/// </summary>
5155
/// <param name="cookie">The <see cref="Cookie"/> to be deleted.</param>
56+
/// <exception cref="ArgumentNullException">If <paramref name="cookie"/> is <see langword="null"/>.</exception>
5257
void DeleteCookie(Cookie cookie);
5358

5459
/// <summary>
5560
/// Deletes the cookie with the specified name from the page.
5661
/// </summary>
5762
/// <param name="name">The name of the cookie to be deleted.</param>
63+
/// <exception cref="ArgumentNullException">If <paramref name="name"/> is <see langword="null"/>.</exception>
5864
void DeleteCookieNamed(string name);
5965

6066
/// <summary>

0 commit comments

Comments
 (0)