Table of Contents

Class ErrorReceivedEventArgs

Namespace
WebDriverBiDi.Protocol
Assembly
WebDriverBiDi.dll

Object containing event data for events raised when a protocol error is received from a WebDriver BiDi connection.

public record ErrorReceivedEventArgs : WebDriverBiDiEventArgs, IEquatable<WebDriverBiDiEventArgs>, IEquatable<ErrorReceivedEventArgs>
Inheritance
ErrorReceivedEventArgs
Implements
Inherited Members

Constructors

ErrorReceivedEventArgs(ErrorResult)

Initializes a new instance of the ErrorReceivedEventArgs class.

public ErrorReceivedEventArgs(ErrorResult errorData)

Parameters

errorData ErrorResult

The data about the error received from the connection.

Exceptions

ArgumentNullException

Thrown when a null is passed for the error data.

ErrorReceivedEventArgs(ErrorReceivedEventArgs)

protected ErrorReceivedEventArgs(ErrorReceivedEventArgs original)

Parameters

original ErrorReceivedEventArgs

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

ErrorData

Gets the error response data.

public ErrorResult ErrorData { get; }

Property Value

ErrorResult

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(ErrorReceivedEventArgs?)

public virtual bool Equals(ErrorReceivedEventArgs? other)

Parameters

other ErrorReceivedEventArgs

Returns

bool

Equals(WebDriverBiDiEventArgs?)

public override sealed bool Equals(WebDriverBiDiEventArgs? other)

Parameters

other WebDriverBiDiEventArgs

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ErrorReceivedEventArgs?, ErrorReceivedEventArgs?)

public static bool operator ==(ErrorReceivedEventArgs? left, ErrorReceivedEventArgs? right)

Parameters

left ErrorReceivedEventArgs
right ErrorReceivedEventArgs

Returns

bool

operator !=(ErrorReceivedEventArgs?, ErrorReceivedEventArgs?)

public static bool operator !=(ErrorReceivedEventArgs? left, ErrorReceivedEventArgs? right)

Parameters

left ErrorReceivedEventArgs
right ErrorReceivedEventArgs

Returns

bool