SQLite Forum

Bug report: inconsistent error message across different CONSTRAINT types
Login
You are not supposed to try to parse error messages in code.

NOT NULL and UNIQUE messages do not show the constraint name because the constraint is already identified by its columns.