From: ts Date: 2001-07-05T21:58:13+09:00 Subject: [ruby-talk:17289] Re: Inheritance >>>>> "A" == Aleksei Guzev writes: A> A) process harware exceptions with Ruby's "rescue" ( I've done this ) A> B) collect hardware exceptions in class MyException A> C) allow processing of Ruby's ZeroDivisionError and my Int- and A> Float-DivisionByZero exceptions with single block: A> rescue ZeroDivisionError. A> (Not "rescue ZeroDivisionError, IntDivisionByZero, A> FloatDivisionByZero"!) Why not something like this pigeon% cat b.rb #!/usr/bin/ruby -w module MyException end class IntDivisionError < ZeroDivisionError include MyException end begin raise IntDivisionError rescue ZeroDivisionError puts "received" end pigeon% b.rb received pigeon% Guy Decoux