M
Mr_Tibs
Hi,
I can't seem to do a very simple thing: I cannot rescue a Errno::EBADF
exception in my code. I know it is a Errno::EBADF exception, since I
can rescue it through the generic exception type (Exception) and then
I print the message. However, if I replace the rescue statement from
"rescue Exception => e" to "rescue Errno::EBADF", the code doesn't go
through the rescue block.
Am I doing something obvisouly wrong or is there something tricky
about catching this type of exceptions?
I want to mention that I'm not using Rails or rake (all the posts that
I've seen on Errno::EBADF are on these 2 subjects).
Thanks,
Tiberiu
I can't seem to do a very simple thing: I cannot rescue a Errno::EBADF
exception in my code. I know it is a Errno::EBADF exception, since I
can rescue it through the generic exception type (Exception) and then
I print the message. However, if I replace the rescue statement from
"rescue Exception => e" to "rescue Errno::EBADF", the code doesn't go
through the rescue block.
Am I doing something obvisouly wrong or is there something tricky
about catching this type of exceptions?
I want to mention that I'm not using Rails or rake (all the posts that
I've seen on Errno::EBADF are on these 2 subjects).
Thanks,
Tiberiu