concept

SQLSTATE and transaction retries

SQLSTATE is a five-character error classification. PostgreSQL 40001 denotes serialization failure; retry the entire transaction with bounded policy, not only its last statement. SQLite driver error codes differ.

Formal Syntax & Structure

sql syntaxsql
Driver-specific error attributes
SQL Reference