package caqti

  1. Overview
  2. Docs

(v1) Exceptions.

  • deprecated

    Don't use this in new code.

exception Connect_failed of Uri.t * string

The exception raised when a backend fails to connect to a resource. Due to pooled connections, this may be raised by describe and query functions as well as the connect function.

exception Prepare_failed of Uri.t * Caqti1_query.query_info * string

The exception raised when query preparation fails.

exception Execute_failed of Uri.t * Caqti1_query.query_info * string

The exception raised when query execution failes.

exception Miscommunication of Uri.t * Caqti1_query.query_info * string

This exception may be raised by a backend when something unexpected happen during the communication process. It signifies a programming error or at least an incompatibility somewhere:

  • A query returns a different number of tuples than expected.
  • A query returns tuples of a different type then expected.
  • A query returns a different kind of result than expected.
  • A networked backend does not understand the result from the server, e.g. due to a different protocol version.
OCaml

Innovation. Community. Security.