From: jim@... Date: 2004-10-26T05:56:39+09:00 Subject: Question on defining hier error types: Is this OK? Hi I was defining a hierachical error type today and realized that I had inheritied from a class before it was closed. It seems to work nicely, but was just wondering why. Below is an example: module A class MyClassError < StandardError class NoBlockError < MyClassError; end class IOError < MyClassError; end ... end#class MyClassError class MyClass ... raise MyClassError::NoBlockError ... raise MyClassError::IOError ... end#class MyClass end#module A I like the way this turned out. Does anyone see a problem with doing this? -- Jim Freeze