Class
WebDriverException

Definition

Constructors

WebDriverException()

Initializes a new instance of the class.

Declaration

cs-api-definition
public WebDriverException()

WebDriverException(SerializationInfo, StreamingContext)

Initializes a new WebDriverException object.

Declaration

cs-api-definition
public WebDriverException(SerializationInfo info, StreamingContext context)

Parameters

info

SerializationInfo

The data needed to serialize or deserialize an object.

context

StreamingContext

The source and destination of a given serialized stream, and provides an additional caller-defined context.

WebDriverException(string)

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

Declaration

cs-api-definition
public WebDriverException(string message)

Parameters

message

string

The message that describes the error.

WebDriverException(string, Exception)

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

Declaration

cs-api-definition
public WebDriverException(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.