From: veydel@... (Viktor Eydel) Date: 2002-04-04T12:30:55+09:00 Subject: Re: Processing Net module errors Either nobody understood the question or it was really too stupid... Probably the last one! I fixed it up, sorry for bothering you guys. veydel@dotcast.com (Viktor Eydel) wrote in message news:<14522cfc.0204031210.3ef819ad@posting.google.com>... > Hi! > > Looks like in case of all different kinds of network failures, such as > interface not up, cable unplugged, unknown host name, etc., ruby > returns SocketError on open_socket call (as it probably should), > raises some kind of exception and terminates my script. I looked at > module Net but didn't find anything better then FTPProtoError and the > like. Which exception do I need to intercept in my rescue clause for > all sorts of socket failures? I am a kinda new to Ruby, and I > apologize if I overlooked something very primitive. > > Thanks, > Vik