Error Handling

  • gsv2com
  • Professor
  • Professor
  • User avatar
  • Posts: 776
  • Loc: Nippon

Post 3+ Months Ago

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?
  • rjmthezonenet
  • Expert
  • Expert
  • User avatar
  • Posts: 526
  • Loc: St. John's, Newfoundland, Canada

Post 3+ Months Ago

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: No registered users and 39 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

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.