Displaying 1 result from an estimated 1 matches for "einvalerror".
2006 Feb 27
1
Trapping specific errors
...for specific errors
begin
cause error
rescue Excpetion => err
case err
when SocketError
do stuff
when ... # trap for ErrNo::EINVAL
end
end
Say I get the error ErrNo::EINVAL ... how/where can I find out what the
Excpetion for it is named?
I have tries ErrNo::EINVAL, ErrNo::EINVALError, EINVALError, but none of
these seem to trap the exception ....
Any help please
Thanks
Joerg
--
Posted via http://www.ruby-forum.com/.