List all Rails Exception Classes to Console

A nifty one-liner (thanks to ActiveSupport) to list all the Rails Error classes in your Rails project.

Simply run this form the Rails Console:

puts Exception.descendants.sort_by(&:name)

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.