• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Converting error codes to readable strings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting error codes to readable strings?


  • Subject: Re: Converting error codes to readable strings?
  • From: Andrew Thompson <email@hidden>
  • Date: Thu, 2 Feb 2006 18:12:43 -0800


On Feb 2, 2006, at 8:22 AM, Jonathan del Strother wrote:

Is there any way to convert error enums into readable strings?

For example, the NSXMLParser might give me parse error number 76, and I have to go look that up to find that that corresponds to NSXMLParserTagNameMismatchError. Not very helpful for users who don't have the NSXMLParser.h header file...

I suppose I could produce my own switch statement to produce an error string for every NSXMLParserError enum value, but is there a better way?


Here is a post that explains one way to do it using the C preprocessor.

https://lists.gnucash.org/pipermail/gnucash-devel/2005-March/012849.html

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Converting error codes to readable strings? (From: Jonathan del Strother <email@hidden>)

  • Prev by Date: Re: Keyboard navigation for a view
  • Next by Date: Re: drawing/graphing package
  • Previous by thread: Re: Converting error codes to readable strings?
  • Next by thread: Re: Converting error codes to readable strings?
  • Index(es):
    • Date
    • Thread