ResponseError

@Serializable
class ResponseError(val code: Int, val message: String, val data: String? = null)

Representation of an error returned by the browser in response to a command.

See also: https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#type-Error

Constructors

Link copied to clipboard
constructor(code: Int, message: String, data: String? = null)

Properties

Link copied to clipboard
val code: Int

The numeric error code, as defined by the protocol.

Link copied to clipboard
val data: String? = null

Optional additional data providing more context about the error.

Link copied to clipboard

A human-readable description of the error.

Functions

Link copied to clipboard

Throws this error as a CDPException, preserving the original code, message, and data.