Hi,

At Fri, 12 Mar 2004 00:11:24 +0900,
Yukihiro Matsumoto wrote in [ruby-core:02645]:
> things.  The only problem left is Errno::ENAMETOOLONG is not always
> defined.  This points me that there's no nice way to handle exceptions
> which may not be defined on some platforms.  Any idea anyone?

What about this?

  begin
    method_raises_something
  rescue *[defined?(SomeError) && SomeError].compact
    retry
  end

-- 
Nobu Nakada