Table of Contents

Class ExceptionDetails

Namespace
OpenQA.Selenium.DevTools.V148.Runtime
Assembly
Selenium.WebDriver.dll

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

public sealed class ExceptionDetails
Inheritance
ExceptionDetails
Inherited Members

Properties

ColumnNumber

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

[JsonPropertyName("columnNumber")]
public long ColumnNumber { get; set; }

Property Value

long

Exception

Exception object if available.

[JsonPropertyName("exception")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public RemoteObject? Exception { get; set; }

Property Value

RemoteObject

ExceptionId

Exception id.

[JsonPropertyName("exceptionId")]
public long ExceptionId { get; set; }

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.

[JsonPropertyName("exceptionMetaData")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public object? ExceptionMetaData { get; set; }

Property Value

object

ExecutionContextId

Identifier of the context where exception happened.

[JsonPropertyName("executionContextId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? ExecutionContextId { get; set; }

Property Value

long?

LineNumber

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

[JsonPropertyName("lineNumber")]
public long LineNumber { get; set; }

Property Value

long

ScriptId

Script ID of the exception location.

[JsonPropertyName("scriptId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? ScriptId { get; set; }

Property Value

string

StackTrace

JavaScript stack trace if available.

[JsonPropertyName("stackTrace")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public StackTrace? StackTrace { get; set; }

Property Value

StackTrace

Text

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

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

Property Value

string

Url

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

[JsonPropertyName("url")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? Url { get; set; }

Property Value

string