Using Exceptions to Provide Better Feedback

Tutorials Shared by the Internet Community

Advertisements


Synopsis

Within this article, we will be taking a closer inspection of exceptions, as requested by the lovely Haris.

Statistics

  • Total Hits - 16261

  • Total Votes - 98 votes

  • Vote Up - 42 votes

  • Vote Down - 56 votes

  • Domain - www.talkphp.com

  • Category - PHP/Object Oriented

  • Submitted By - Devesh Khanna

  • Submitted on - 2008-03-16 07:46:08

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. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements