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
messagestringThe message of the exception.
errorResultErrorResultThe 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
messagestringThe message of the exception.
errorResultErrorResultThe error result returned by the remote end.
innerExceptionExceptionThe 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
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
ProtocolErrorMessage
Gets the protocol error message returned by the remote end.
public string ProtocolErrorMessage { get; }
Property Value
ProtocolErrorType
Gets the error type for the protocol error returned by the remote end.
public string ProtocolErrorType { get; }
Property Value
RemoteStackTrace
Gets the stack trace from the remote end, if available.
public string? RemoteStackTrace { get; }