Module Wd.Error

Command or protocol errors.

module Response : sig ... end

Error responses.

type t =
  1. | Response of Response.t
    (*

    An error from a command invocation.

    *)
  2. | Protocol of string
    (*

    A protocol error, this should not happen. Either a WebSocket or JSON codec error.

    *)
  3. | Connection_closing
    (*

    The is error is raised by command calls or Event.await if Connection.close is called on the connection.

    *)

The type for WebDriver errors.

val to_string : t -> string

to_string e formats e with pp to a string.

val pp : Stdlib.Format.formatter -> t -> unit

pp formats errors for inspection.