Thrown when a foreign key constraint is violated in the database
The parameters for the sql that triggered the error
The SQL that triggered the error
use Error.cause.
Thrown when a foreign key constraint is violated in the database