Using Exceptions to Provide Better Feedback
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 8793
Total Votes: 89 votes
Category: PHP/Object Oriented
Submitted on: 2008-03-16 07:46:08
Submitted By: Devesh Khanna
Description:Within this article, we'll be taking a closer inspection of exceptions, as requested by the lovely Haris. This will be a basic exceptions article and so I won't be going over how to extend onto the exceptions class to model your own - otherwise we'll get too far ahead of ourselves. Exceptions tend to be used where we have no jurisdiction over the source, and when we wish to return a more informative message to the front-end. More detail...