From: Aleksei Guzev Date: 2001-07-05T18:57:32+09:00 Subject: [ruby-talk:17281] Inheritance Hello! I need to define four classes ( do not ask why but I really need it :(((: class MyException < Exception end class NotADivisionByZero < MyException end class IntDivisionByZero < MyException end class FloatDivisionByZero < MyException end And then I'd like Ruby treat the latter two classes as ancestors of ZeroDivisionError. At least in "rescue" clauses. begin raise IntDivisionByZero, "an integer was divided by zero" rescue ZeroDivisionError print "ok\r\n" end Would print "ok". Any suggestions?