From: Raimon Fs Date: 2007-12-10T07:46:48+09:00 Subject: Re: handle a special foramt error when importing csv Michael Guterl wrote: > Hi, > > On Dec 9, 2007 3:03 PM, Raimon Fs wrote: > >> begin >> # Exceptions raised by this code will >> # be caught by the following rescue clause >> >> ... some code ... >> >> >> rescue Exception > > > try this, > rescue CSV::IllegalFormatError thanks, I'll try that ... I wasn't aware that I could simply catch those errors, beacuse I would like a more general error, because I don't know in advance how many errors I'm going to find ... regards, rai -- Posted via http://www.ruby-forum.com/.