Table of Contents

Class ErrorResponse

Namespace
OpenQA.Selenium
Assembly
WebDriver.dll

Provides a way to store errors from a response

public class ErrorResponse
Inheritance
ErrorResponse
Inherited Members

Constructors

ErrorResponse()

Initializes a new instance of the ErrorResponse class.

public ErrorResponse()

ErrorResponse(Dictionary<string, object?>?)

Initializes a new instance of the ErrorResponse class using the specified values.

public ErrorResponse(Dictionary<string, object?>? responseValue)

Parameters

responseValue Dictionary<string, object>

A Dictionary<TKey, TValue> containing names and values of the properties of this ErrorResponse.

Properties

ClassName

Gets or sets the class name that threw the error

public string? ClassName { get; }

Property Value

string

Message

Gets or sets the message from the response

public string Message { get; }

Property Value

string

Screenshot

Gets or sets the screenshot of the error

public string? Screenshot { get; }

Property Value

string

StackTrace

Gets or sets the stack trace of the error

public StackTraceElement[]? StackTrace { get; }

Property Value

StackTraceElement[]