Currently I have several classes, each of which deals with different sites. They act like the same type, in the sense that they all have crawl_item() method.
class CrawlA def crawl_item ... A.create() end end class CrawlB def crawl_item B.create() end end Now I want to catch one model validation exception when calling any of these crawl_item methods, and perform the same rescue action. What would be a good way to implement this?
crawl_itemare different in each class, aren't they?