From: nobu.nokada@... Date: 2002-10-22T10:32:16+09:00 Subject: Re: functional Ruby equiv to this perl snippet Hi, At Tue, 22 Oct 2002 06:33:22 +0900, Austin Ziegler wrote: > If there is anywhere that I think that Ruby's class model is a bit > weak, it's in the existence of and documentation of 'standard' > exceptions. IMO, Errno::ENOENT is not what File.open should throw, > even though that's the actual errno value received -- it should throw > an appropriate readable exception (like FileNotFoundException) or > something like that. Like these? class IO module Error NoSuchFileOrDirectory = Errno::ENOENT PermissionDenied = Errno::EACCESS OperationNotPermitted = Errno::EPERM # ... end end -- Nobu Nakada