CDPException

class CDPException(val method: String, val code: Int, val originalMessage: String, val data: String?)

Exception thrown when the browser responds with an error to a CDP command.

Wraps the Message.Response.ResponseError fields into a typed exception so that client code can catch and handle failures programmatically.

Constructors

Link copied to clipboard
constructor(method: String, code: Int, originalMessage: String, data: String?)

Properties

Link copied to clipboard
val code: Int

The numeric error code returned by the browser.

Link copied to clipboard
val data: String?

Optional extra data returned by the browser for more context.

Link copied to clipboard

The CDP command method that triggered the error.

Link copied to clipboard

The original error message from the browser.