From c5a5a92d5fa3ac7b56c75e7324aec8d2eb603b64 Mon Sep 17 00:00:00 2001 From: Rob Holland Date: Sun, 25 May 2008 09:43:05 +0100 Subject: Inherit from StandardError for SQLite3 exceptions so that they are caught with a standard rescue --- lib/sqlite3/errors.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqlite3/errors.rb') 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. -- cgit