From: Brian Candler Date: 2009-04-15T21:58:02+09:00 Subject: Re: OptionParser and Exceptions Robert Klemme wrote: > You need to rescue Exception because rescue without any arguments only > rescues RuntimeErrors IIRC rescue without any arguments rescues StandardError. (StandardError is an ancestor of RuntimeError, and Exception is an ancestor of StandardError) See: http://www.zenspider.com/Languages/Ruby/QuickRef.html#34 You should normally be a bit wary of 'rescue Exception'. This will rescue all sorts of internal failures like NoMemoryError or SyntaxError which you may not want to hide. -- Posted via http://www.ruby-forum.com/.