Waarom zou u in plaats daarvan niet de component hive thrift gebruiken? Dan krijg je uitzonderingen terug met de juiste berichten.
In robijn is het zo simpel als:
require 'rubygems'
require 'rbhive'
RBHive.connect(host, port) do |connection|
begin
connection.fetch("select * from table1") #this throws various exceptions
rescue Exception => ex
puts "oh no! An error: #{ex.message}"
end
end