Table of Contents

Class WebDriverBiDiErrorResponseException

Namespace
WebDriverBiDi
Assembly
WebDriverBiDi.dll

Abstract base class for exceptions that carry a structured ErrorResult received from the remote end of the WebDriver BiDi protocol. Subclasses distinguish between command-level errors (see WebDriverBiDiCommandException) and unsolicited protocol-level errors (see WebDriverBiDiProtocolException).

public abstract class WebDriverBiDiErrorResponseException : WebDriverBiDiException, ISerializable
Inheritance
WebDriverBiDiErrorResponseException
Implements
Derived
Inherited Members

Constructors

WebDriverBiDiErrorResponseException()

Initializes a new instance of the WebDriverBiDiErrorResponseException class.

protected WebDriverBiDiErrorResponseException()

WebDriverBiDiErrorResponseException(string, ErrorResult)

Initializes a new instance of the WebDriverBiDiErrorResponseException class.

protected WebDriverBiDiErrorResponseException(string message, ErrorResult errorResult)

Parameters

message string

The message of the exception.

errorResult ErrorResult

The error result returned by the remote end.

WebDriverBiDiErrorResponseException(string, ErrorResult, Exception)

Initializes a new instance of the WebDriverBiDiErrorResponseException class.

protected WebDriverBiDiErrorResponseException(string message, ErrorResult errorResult, Exception innerException)

Parameters

message string

The message of the exception.

errorResult ErrorResult

The error result returned by the remote end.

innerException Exception

The inner exception causing this exception.

Properties

ErrorCode

Gets the protocol error code returned by the remote end. If the error type string does not match any known error code, this will return UnsetErrorCode.

public ErrorCode ErrorCode { get; }

Property Value

ErrorCode

ErrorDetails

Gets the error result data from the remote end, containing the error type, error message, and optional stack trace.

public ErrorResult ErrorDetails { get; }

Property Value

ErrorResult

ProtocolErrorMessage

Gets the protocol error message returned by the remote end.

public string ProtocolErrorMessage { get; }

Property Value

string

ProtocolErrorType

Gets the error type for the protocol error returned by the remote end.

public string ProtocolErrorType { get; }

Property Value

string

RemoteStackTrace

Gets the stack trace from the remote end, if available.

public string? RemoteStackTrace { get; }

Property Value

string