Skip to content

Instantly share code, notes, and snippets.

@marcusvmsa
Created April 26, 2011 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcusvmsa/942865 to your computer and use it in GitHub Desktop.
Save marcusvmsa/942865 to your computer and use it in GitHub Desktop.
Exceptions available in your Ruby on Rails project
all_exceptions = []
ObjectSpace.each_object(Class) do |k|
all_exceptions << k if k.ancestors.include?(Exception)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment