summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Holland <rob@inversepath.com>2008-05-25 09:43:05 +0100
committerRob Holland <rob@inversepath.com>2008-05-25 09:43:05 +0100
commitc5a5a92d5fa3ac7b56c75e7324aec8d2eb603b64 (patch)
treebb98e52edf7226b081e6ede454a8688517ee98a6
parent5df129b18892d720752e84d547cf339e29bcf8ea (diff)
downloadthird_party-sqlite3-ruby-c5a5a92d5fa3ac7b56c75e7324aec8d2eb603b64.tar.gz
third_party-sqlite3-ruby-c5a5a92d5fa3ac7b56c75e7324aec8d2eb603b64.tar.xz
third_party-sqlite3-ruby-c5a5a92d5fa3ac7b56c75e7324aec8d2eb603b64.zip
Inherit from StandardError for SQLite3 exceptions so that they are caught with a standard rescue
-rw-r--r--lib/sqlite3/errors.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlite3/errors.rb b/lib/sqlite3/errors.rb
index 842c228..b201445 100644
--- a/lib/sqlite3/errors.rb
+++ b/lib/sqlite3/errors.rb
@@ -2,7 +2,7 @@ require 'sqlite3/constants'
module SQLite3
- class Exception < ::Exception
+ class Exception < ::StandardError
@code = 0
# The numeric error code that this exception represents.