Table of Contents

Class EventObserverErrorInfo

Namespace
WebDriverBiDi
Assembly
WebDriverBiDi.dll

Describes a failure raised by an observable event observer.

public sealed record EventObserverErrorInfo : IEquatable<EventObserverErrorInfo>
Inheritance
EventObserverErrorInfo
Implements
Inherited Members

Constructors

EventObserverErrorInfo()

public EventObserverErrorInfo()

Properties

Exception

Gets the exception thrown by the observer.

public required Exception Exception { get; init; }

Property Value

Exception

FaultOccurredAfterHandlerReturned

Gets a value indicating whether the fault occurred after control returned to the caller.

public required bool FaultOccurredAfterHandlerReturned { get; init; }

Property Value

bool

Remarks

This is always true for a handler registered with RunHandlerAsynchronously: the caller raising the event does not await such a handler, so its failure can only surface after control returned, even when the task the handler returned was already faulted.

IsAsynchronousHandler

Gets a value indicating whether the observer was configured to run asynchronously.

public required bool IsAsynchronousHandler { get; init; }

Property Value

bool

ObservableEventName

Gets the name of the observable event whose observer faulted.

public required string ObservableEventName { get; init; }

Property Value

string

ObserverDescription

Gets the description of the observer that faulted.

public required string ObserverDescription { get; init; }

Property Value

string

ObserverId

Gets the identifier of the observer that faulted.

public required string ObserverId { get; init; }

Property Value

string

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(EventObserverErrorInfo?)

public bool Equals(EventObserverErrorInfo? other)

Parameters

other EventObserverErrorInfo

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(EventObserverErrorInfo?, EventObserverErrorInfo?)

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

Parameters

left EventObserverErrorInfo
right EventObserverErrorInfo

Returns

bool

operator !=(EventObserverErrorInfo?, EventObserverErrorInfo?)

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

Parameters

left EventObserverErrorInfo
right EventObserverErrorInfo

Returns

bool