Skip to content

Instantly share code, notes, and snippets.

@oki
Created December 19, 2009 14:36
begin
#raise
#raise Timeout::Error.new('fuckme')
raise ScriptError
rescue Exception => e
if [Timeout::Error,RuntimeError,ScriptError].include? e.class
puts "OK"
else
raise
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment