Error
Error is raised when a SQLite operation fails for any reason other than a
busy/locked condition.
Catching Error also catches Busy.
open "mydb.sqlite" do |conn|
do
conn.execute "INSERT INTO users (name) VALUES (:name)" name: "Alice"
catch Busy
echo "Database is busy"
catch Error: e
echo "SQLite error: $e"