Table of Contents

Class ErrorResponseMessage

Namespace
WebDriverBiDi.Protocol
Assembly
WebDriverBiDi.dll

Response class that contains the result of a command when an error is encountered.

public class ErrorResponseMessage : Message
Inheritance
ErrorResponseMessage
Inherited Members

Constructors

ErrorResponseMessage()

public ErrorResponseMessage()

Properties

CommandId

Gets the ID for the command causing this error during execution, if any.

[JsonPropertyName("id")]
[JsonRequired]
[JsonInclude]
public long? CommandId { get; }

Property Value

long?

ErrorCode

Gets the error code associated with this error. If the error code string does not match any known error code, this will return UnsetErrorCode.

[JsonIgnore]
public ErrorCode ErrorCode { get; }

Property Value

ErrorCode

ErrorMessage

Gets the message of the error.

[JsonPropertyName("message")]
[JsonRequired]
[JsonInclude]
public string ErrorMessage { get; }

Property Value

string

ErrorType

Gets the type of error encountered.

[JsonPropertyName("error")]
[JsonRequired]
[JsonInclude]
public string ErrorType { get; }

Property Value

string

StackTrace

Gets the stack trace associated with this error.

[JsonPropertyName("stacktrace")]
[JsonInclude]
public string? StackTrace { get; }

Property Value

string

Methods

GetErrorResponseData()

Gets the data associated with the error without the command information.

public ErrorResult GetErrorResponseData()

Returns

ErrorResult

An ErrorResult object containing the data about the error.