Record
db-error
A structured error reported by the database itself.
record db-error {
code: string,
severity: string,
message: string,
detail: option<string>,
extras: list<tuple<string, string>>,
}Fields
| Name | Type | Description |
|---|---|---|
| code | string | The five-character SQLSTATE code, e.g. 23505 for a unique-constraint
violation. See the Postgres "Error Codes" appendix. |
| severity | string | The severity as reported by the database, e.g. ERROR, FATAL, or
PANIC. |
| message | string | The primary human-readable error message. |
| detail | option<string> | An optional secondary message carrying more detail about the problem. |
| extras | list<tuple<string, string>> | Any additional fields the database provided that are not captured above,
as (field-name, value) pairs. |