Table of Contents

Class ScriptException

Namespace
WebDriverBiDi.Script
Assembly
WebDriverBiDi.Extensions.dll

Thrown when a script run through the Script module's extension methods throws a JavaScript exception.

public class ScriptException : WebDriverBiDiException, ISerializable
Inheritance
ScriptException
Implements
Inherited Members

Constructors

ScriptException()

Initializes a new instance of the ScriptException class.

public ScriptException()

ScriptException(string)

Initializes a new instance of the ScriptException class with a message.

public ScriptException(string message)

Parameters

message string

The message.

ScriptException(string, Exception)

Initializes a new instance of the ScriptException class with a message and the exception that caused it.

public ScriptException(string message, Exception innerException)

Parameters

message string

The message.

innerException Exception

The exception that caused this one.

ScriptException(ExceptionDetails)

Initializes a new instance of the ScriptException class from the details the browser reported.

public ScriptException(ExceptionDetails details)

Parameters

details ExceptionDetails

The details of the JavaScript exception.

Properties

Details

Gets the details of the JavaScript exception, including its stack trace and the thrown value, or null if the exception was not created from a browser's report.

public ExceptionDetails? Details { get; }

Property Value

ExceptionDetails