home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Think Class Libraries / File class library / headers / MFSResponses.h < prev   
Encoding:
C/C++ Source or Header  |  1994-11-30  |  2.3 KB  |  46 lines  |  [TEXT/KAHL]

  1. /*
  2.  
  3.   MFSResponses.h
  4.  
  5.      Macintosh File System (MFS) error response codes.
  6.  
  7.   March 9, 1992  isl
  8.   
  9. */
  10.  
  11. #define    _H_MFSResponses                    //    Include this file only once
  12.  
  13.  
  14.  
  15. enum                                                        //    The sequence of error codes (from _MacsBug Reference and Debugging Guide_)
  16. {
  17.     wrPermErr= -61,                                //    Write permission error, not a publisher
  18.     badMDBErr,                                        //    Bad master directory block, must reinitialize volume
  19.     fsRnErr,                                            //    Problem during rename
  20.     extFSErr,                                            //    Volume in question belongs to an external file system, file system identifier is nonzero, or path reference number is greater than 1024
  21.     noMacDskErr,                                    //    Not a Macintosh disk; signinficant bytes are wrong
  22.     nsDrvErr,                                            //    No such drive; specified drive number did not match any number in the drive queue
  23.     volOnLineErr,                                    //    Drive number already on line at MountVol
  24.     permErr,                                            //    Not a subscriber, software lock on file
  25.     volOffLIneErr,                                //    Volume not on line (was ejected)
  26.     gfpErr,                                                //    Error during GetFPos()
  27.     rfNumErr,                                            //    Path reference number specifies non-existent path
  28.     paramErr,                                            //    Error in user parameter list:    Parameters did not specify an existing volume (File Manager); Bad positioning information (Disk Driver);    Bad drive number (Disk Initialization Package).
  29.     opWrErr,                                            //    File already open with write permission
  30.     dupFNErr,                                            //    Duplicate filename (rename)
  31.     fBsyErr,                                            //    File is busy; Section doing I/O
  32.     vLckdErr,                                            //    Volume is locked by a software flag
  33.     fLckdErr,                                            //    File is locked.
  34.     wPrErr,                                                //    Volume is locked by a hardware setting
  35.     fnfErr,                                                //    File not found; Folder not found; Edition container not found; Target not found
  36.     tmfoErr,                                            //    Too many files open
  37.     mFulErr,                                            //    Memory full (open), or file would not fit (load)
  38.     posErr,                                                //    Treid to position the file pointer before the start of the file (read or write)
  39.     eofErr,                                                //    Logical end-of-file reached during read operation
  40.     fnOpnErr,                                            //    File not open
  41.     bdNamErr,                                            //    Bad filename or volume name (perhaps zero-length)
  42.     ioErr,                                                //    I/O error
  43.     nsvErr,                                                //    Volume not found
  44.     dskFulErr,                                        //    All allocation blocks on the volume are full
  45.     dirFulErr                                            //    File directory full.
  46. }