From: Tom Copeland Date: 2006-11-28T16:17:25+09:00 Subject: Re: Help me design my exception classes On Tue, 2006-11-28 at 15:41 +0900, Joel VanderWerf wrote: > Careful... that's a wide net to cast. It will catch Interrupt and > SystemExit, for example. StandardError is often (but not always) the > right generic class to catch. > > Note that the syntax > > rescue => e > > (with exception class omitted) is the same as > > rescue StandardError => e > > This suggests that StandardError was intended to be thought of as "generic". Hm, good point, StandardError probably is a better way to go. I've always used Exception, but I think I'll go back and revisit some of those usages now :-) Yours, Tom