class ExceptionList::Exceptions

Public Instance Methods

all() click to toggle source
# File lib/exception_list/exceptions.rb, line 3
def all
  exceptions = []
  ObjectSpace.each_object(Class) do |o|
    exceptions << o if o.ancestors.include?(Exception)
  end
  exceptions
end