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
FaultOccurredAfterHandlerReturned
Gets a value indicating whether the fault occurred after control returned to the caller.
public required bool FaultOccurredAfterHandlerReturned { get; init; }
Property Value
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
ObservableEventName
Gets the name of the observable event whose observer faulted.
public required string ObservableEventName { get; init; }
Property Value
ObserverDescription
Gets the description of the observer that faulted.
public required string ObserverDescription { get; init; }
Property Value
ObserverId
Gets the identifier of the observer that faulted.
public required string ObserverId { get; init; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(EventObserverErrorInfo?)
public bool Equals(EventObserverErrorInfo? other)
Parameters
otherEventObserverErrorInfo
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(EventObserverErrorInfo?, EventObserverErrorInfo?)
public static bool operator ==(EventObserverErrorInfo? left, EventObserverErrorInfo? right)
Parameters
leftEventObserverErrorInforightEventObserverErrorInfo
Returns
operator !=(EventObserverErrorInfo?, EventObserverErrorInfo?)
public static bool operator !=(EventObserverErrorInfo? left, EventObserverErrorInfo? right)
Parameters
leftEventObserverErrorInforightEventObserverErrorInfo