Postgres module

Pg_Error

structsince 0.27.0Source

What a call returns. It is small on purpose (the hot calls hand it back by value): the kind, the SQLSTATE and the primary message. The rest of an ErrorResponse is in error_fields(error).

Fields

io: Io.Io_Error
IO, TIMED_OUT, CANCELED: the Io error behind it
code: Sqlstate
SERVER
message: string
the primary message; for client errors, what happened
owner: *Error_Fields
Owns message and the strings of the fields: release it with free_error. Null when the error holds nothing (no error).

See also