FROM : Ali Ozer
DATE : Mon May 26 21:15:54 2008
In general Cocoa classes, including NSFileManager, return errors just
in the domain NSCocoaErrorDomain. So all the possible errors should
be listed in FoundationErrors.h.
However, there may of course be underlying errors; these are often in
the POSIX domain. Note that you can never count on the presence of
underlying errors, and they may change between releases.
Ali
On May 26, 2008, at 11:04 , Jens Alfke wrote:
>
> On 26 May '08, at 10:24 AM, Jonathan Dann wrote:
>
>> I can't find the documentation about which errors can occurr. Do
>> these docs exist and if not, other than messing with permissions
>> and trying to force common file handling errors, what error codes
>> should I test for?
>
> NSFileManager is probably going to return errors in
> NSPOSIXErrorDomain, since it mostly makes Unix system calls. Those
> are defined in <sys/errno.h>.
>
> Some methods might use CarbonCore FileManager calls, which would
> return errors in NSOSStatusErrorDomain. Those are defined in
> <MacErrors.h>.
>
> —Jens_______________________________________________
DATE : Mon May 26 21:15:54 2008
In general Cocoa classes, including NSFileManager, return errors just
in the domain NSCocoaErrorDomain. So all the possible errors should
be listed in FoundationErrors.h.
However, there may of course be underlying errors; these are often in
the POSIX domain. Note that you can never count on the presence of
underlying errors, and they may change between releases.
Ali
On May 26, 2008, at 11:04 , Jens Alfke wrote:
>
> On 26 May '08, at 10:24 AM, Jonathan Dann wrote:
>
>> I can't find the documentation about which errors can occurr. Do
>> these docs exist and if not, other than messing with permissions
>> and trying to force common file handling errors, what error codes
>> should I test for?
>
> NSFileManager is probably going to return errors in
> NSPOSIXErrorDomain, since it mostly makes Unix system calls. Those
> are defined in <sys/errno.h>.
>
> Some methods might use CarbonCore FileManager calls, which would
> return errors in NSOSStatusErrorDomain. Those are defined in
> <MacErrors.h>.
>
> —Jens_______________________________________________
| Related mails | Author | Date |
|---|---|---|
| Jonathan Dann | May 26, 19:24 | |
| Jens Alfke | May 26, 20:04 | |
| Ali Ozer | May 26, 21:15 | |
| Jonathan Dann | May 28, 19:45 | |
| Ali Ozer | May 28, 22:33 |






Cocoa mail archive

