Table of Contents

Class ExceptionDetails

Namespace
WebDriverBiDi.Script
Assembly
WebDriverBiDi.dll

Object containing the details of an exception thrown by a script.

public record ExceptionDetails : IEquatable<ExceptionDetails>
Inheritance
ExceptionDetails
Implements
Inherited Members

Constructors

ExceptionDetails(ExceptionDetails)

protected ExceptionDetails(ExceptionDetails original)

Parameters

original ExceptionDetails

Properties

ColumnNumber

Gets the column number of the statement that caused the exception.

[JsonPropertyName("columnNumber")]
[JsonRequired]
[JsonInclude]
public ulong ColumnNumber { get; }

Property Value

ulong

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Exception

Gets the RemoteValue representing the value of the exception.

[JsonPropertyName("exception")]
[JsonRequired]
[JsonInclude]
public RemoteValue Exception { get; }

Property Value

RemoteValue

LineNumber

Gets the line number of the statement that caused the exception.

[JsonPropertyName("lineNumber")]
[JsonRequired]
[JsonInclude]
public ulong LineNumber { get; }

Property Value

ulong

StackTrace

Gets the stack trace of the exception.

[JsonPropertyName("stackTrace")]
[JsonRequired]
[JsonInclude]
public StackTrace StackTrace { get; }

Property Value

StackTrace

Text

Gets the text of the exception.

[JsonPropertyName("text")]
[JsonRequired]
[JsonInclude]
public string Text { get; }

Property Value

string

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(ExceptionDetails?)

public virtual bool Equals(ExceptionDetails? other)

Parameters

other ExceptionDetails

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ExceptionDetails?, ExceptionDetails?)

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

Parameters

left ExceptionDetails
right ExceptionDetails

Returns

bool

operator !=(ExceptionDetails?, ExceptionDetails?)

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

Parameters

left ExceptionDetails
right ExceptionDetails

Returns

bool