From: Austin Ziegler Date: 2003-08-16T13:55:15+09:00 Subject: Re: rescue exception On Sat, 16 Aug 2003 11:53:58 +0900, Xiangrong Fang wrote: > I had a question about exception in ruby. > In the following code: > begin > # do something > rescue > # error caught > end > The exception is NOT caught, but if I write: > begin > # do something > rescue Exception > # error caught > end > Error is caught. Could any one tell me if I ommit the Exception after > rescue, what is it trying to rescue? Descendants of StandardError, IIRC. -austin -- austin ziegler * austin@halostatue.ca * Toronto, ON, Canada software designer * pragmatic programmer * 2003.08.16 * 00.54.00