Error Handling

  • gsv2com
  • Professor
  • Professor
  • User avatar
  • Joined: Jan 25, 2004
  • Posts: 776
  • Loc: Nippon
  • Status: Offline

Post March 5th, 2004, 12:13 am

PHP developers,

How do you guys usually do error-handling? Do you just output the error, or do you throw it in an array.

I've found it of immense use to throw all error messages into array $error and use php's array functions to perform error handling. Just curious how others take care of this sort of business. Tips? Tricks? Anyone?

Is this too broad of a question?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post March 5th, 2004, 12:13 am

  • rjmthezonenet
  • Expert
  • Expert
  • User avatar
  • Joined: Jan 14, 2004
  • Posts: 526
  • Loc: St. John's, Newfoundland, Canada
  • Status: Offline

Post March 5th, 2004, 9:19 am

In simple terms, my scripts die on exception and print a message. No further processing is done. However, I do make a point to send messages that are helpful to end-users.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: Bigwebmaster and 169 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.