Table of Contents

Class InvalidCookieDomainException

Namespace
OpenQA.Selenium
Assembly
WebDriver.dll

The exception that is thrown when the users attempts to set a cookie with an invalid domain.

[Serializable]
public class InvalidCookieDomainException : WebDriverException, ISerializable
Inheritance
InvalidCookieDomainException
Implements
Inherited Members

Constructors

InvalidCookieDomainException()

Initializes a new instance of the InvalidCookieDomainException class.

public InvalidCookieDomainException()

InvalidCookieDomainException(string?)

Initializes a new instance of the InvalidCookieDomainException class with a specified error message.

public InvalidCookieDomainException(string? message)

Parameters

message string

The message that describes the error.

InvalidCookieDomainException(string?, Exception?)

Initializes a new instance of the InvalidCookieDomainException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public InvalidCookieDomainException(string? message, Exception? innerException)

Parameters

message string

The error message that explains the reason for the exception.

innerException Exception

The exception that is the cause of the current exception, or null if no inner exception is specified.