On Sat, Jan 21, 2012 at 12:46 AM, Marc Heiler <shevegen / linuxmail.org> wrote: >> Does narrowly defining the purpose of errors this way make sense? > > It seems to be too rigorous to me. It also does not work. There might be only very few errors where there is just one condition for failure. Normally the condition depends on the code _using_ the exception type. Even for a TypeError things are not that clear: you may want to throw if the object in question is not one of _several_ types or you may want to throw if a specific method is not implemented etc. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/