I often see custom Exception classes inheriting from StandardError. Errors which you can generally deal with are subclassed from StandardError:
module AbstractController class Error < StandardError #:nodoc: end class ActionNotFound < StandardError #:nodoc: end unless action_name = method_for_action(action_name) raise ActionNotFound, "The action '#{action}' could not be found for #{self.class.name}" end But why even bother to create the subclasses (which as shown above, have no definition of themselves), when substituting ActionNotFound with StandardError during the raise call will have the same effect. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.