Bug 964859 - Refactor SQLite bridge exception handling; r=gcp