Skip navigation

Where is a comprehensive list of error codes?

2447 Views 19 Replies Latest reply: Apr 3, 2013 3:17 PM by Gil Dawson RSS
1 2 Previous Next
Gil Dawson Level 1 Level 1 (75 points)
Currently Being Moderated
Apr 2, 2013 9:07 PM

I keep looking for a comprehensive list of all error codes sorted by number.  If, for example, something reports an error like "An error of type -1409 has occurred.", it seems there must be a list somewhere of descriptions of errors of type -1409.  Is there?  Does such a list exist?

 

If not, can you help me understand why not?

 

--Gil

MacBook Pro, Mac OS X (10.6.8)
  • seventy one Level 6 Level 6 (8,490 points)
    Currently Being Moderated
    Apr 3, 2013 12:02 AM (in response to Gil Dawson)

    Here is the nearest I have found to an error list.  

     

    http://www.cs.cmu.edu/afs/cs/user/lenzo/html mac_errors.html

     

    It is incomplete but of some help I hope.

     

    Why it is not produced by Apple, I don't know, but it seems down to the expotential rise in numbers

  • Klaus1 Level 8 Level 8 (43,385 points)
  • seventy one Level 6 Level 6 (8,490 points)
    Currently Being Moderated
    Apr 3, 2013 7:13 AM (in response to Gil Dawson)

    Hi Gil,

    Did you notice the e-mail link at the bottom of the list I posted to you.   Perhaps you could write to him and ask.   As he said, the list is never up to date but that's also to say that perhaps he infrequently updates it.   Thanks for the star.

  • WZZZ Level 6 Level 6 (11,880 points)
    Currently Being Moderated
    Apr 3, 2013 7:51 AM (in response to Gil Dawson)

    Best to just try your luck googling a code. See what someone else is getting that code for.

  • Mark Jalbert Level 5 Level 5 (4,385 points)
    Currently Being Moderated
    Apr 3, 2013 8:37 AM (in response to Gil Dawson)

    From the file:

     

    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers/MacErrors.h
    
    
      errFSForkNotFound         = -1409, /* Named fork does not exist */

    Error codes exists in many different Frameworks for example the file:

     

    /System/Library/Frameworks/Automator.framework/Versions/A/Headers/AutomatorErrors.h
    

     

    Darwin error codes can be found in the file:

     

    /usr/include/sys/errno.h
    
  • WZZZ Level 6 Level 6 (11,880 points)
    Currently Being Moderated
    Apr 3, 2013 8:50 AM (in response to Gil Dawson)

    A lot, if not all, the error code lists you may come across are way out of date. Some even for OS9 or earlier.

  • Mark Jalbert Level 5 Level 5 (4,385 points)
    Currently Being Moderated
    Apr 3, 2013 9:49 AM (in response to Gil Dawson)

    How did you do this?

     

     

    I would use the Terminal.app and enter the following command->

     

    find /System/Library/Frameworks/ -type f -iname "*err*.h" -exec grep -lw "\-1409" {} +
    

     

    More than likely you will find your error codes in MacErrors.h unless the error is low level in which case /usr/include/sys/errno.h will contain the error code.

  • Mark Jalbert Level 5 Level 5 (4,385 points)
    Currently Being Moderated
    Apr 3, 2013 12:34 PM (in response to Gil Dawson)

    Hmmm....I'm not sure what is going on. I'm running 10.6.8. Here's the command and the output that I get->

     

    [bash-3.2.48] ~ $ find /System/Library/Frameworks/ -type f -iname "*.h" -exec /usr/bin/grep -lw "\-1409" {} +
    /System/Library/Frameworks//CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers/MacErrors.h
    

     

    I changed the command to find all header files. Let me explain what the command says:

     

    Find all files nested in the directory /System/Library/Frameworks that end in .h then search (grep) those files for the word -1409 and print the name of the file.

1 2 Previous Next

Actions

More Like This

  • Retrieving data ...

Bookmarked By (1)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.