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
messagestringThe 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
ScriptException(ExceptionDetails)
Initializes a new instance of the ScriptException class from the details the browser reported.
public ScriptException(ExceptionDetails details)
Parameters
detailsExceptionDetailsThe 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; }