Print out all exceptions : ObjectSpace « Reflection « Ruby





Print out all exceptions


ObjectSpace.each_object(Class) do |x|
  puts x if x.ancestors.member? Exception
end

 

Related examples in the same category

1.Print out only errors
2.ObjectSpace.each_object