Table of Contents

Class ExceptionDetails

Namespace
Selenium.WebDriver.BiDi.Cdp.Runtime
Assembly
Selenium.WebDriver.BiDi.Cdp.dll

Detailed information about exception (or error) that was thrown during script compilation or execution.

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

Constructors

ExceptionDetails(long, string, long, long)

Detailed information about exception (or error) that was thrown during script compilation or execution.

public ExceptionDetails(long ExceptionId, string Text, long LineNumber, long ColumnNumber)

Parameters

ExceptionId long

Exception id.

Text string

Exception text, which should be used together with exception object when available.

LineNumber long

Line number of the exception location (0-based).

ColumnNumber long

Column number of the exception location (0-based).

Properties

ColumnNumber

Column number of the exception location (0-based).

public long ColumnNumber { get; init; }

Property Value

long

Exception

Exception object if available.

public RemoteObject? Exception { get; init; }

Property Value

RemoteObject

ExceptionId

Exception id.

public long ExceptionId { get; init; }

Property Value

long

ExceptionMetaData

Dictionary with entries of meta data that the client associated with this exception, such as information about associated network requests, etc.

public JsonElement? ExceptionMetaData { get; init; }

Property Value

JsonElement?

ExecutionContextId

Identifier of the context where exception happened.

public ExecutionContextId? ExecutionContextId { get; init; }

Property Value

ExecutionContextId

LineNumber

Line number of the exception location (0-based).

public long LineNumber { get; init; }

Property Value

long

ScriptId

Script ID of the exception location.

public ScriptId? ScriptId { get; init; }

Property Value

ScriptId

StackTrace

JavaScript stack trace if available.

public StackTrace? StackTrace { get; init; }

Property Value

StackTrace

Text

Exception text, which should be used together with exception object when available.

public string Text { get; init; }

Property Value

string

Url

URL of the exception location, to be used when the script was not reported.

public string? Url { get; init; }

Property Value

string