Mandeep Baruah wrote: > (http://www.troubleshooters.com/codecorn/ruby/database/index.htm). > Finally I have used 'StandardError' successfully to rescue the > exception. Seems to be working now!. > begin > res = @pgconn.exec(querystring) # some query > rescue StandardError => e > puts e > end puts e.class.ancestors.inspect should give you a list of possible more-specific exceptions to capture. -- Posted via http://www.ruby-forum.com/.