andeedee / gapi-google-analytics-php-interface

Automatically exported from code.google.com/p/gapi-google-analytics-php-interface
0 stars 0 forks source link

Why use Exception? #24

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
First, great work and API.

Why you use the Exception for the error?

For example:

When the authenticate fail, i want notify the client have the date
incorrect, but with the Exception the application stop.

I will change for my needs.

Original issue reported on code.google.com by jonathan...@gmail.com on 27 Oct 2009 at 3:46

GoogleCodeExporter commented 9 years ago
You can accomplish what you are talking about by catching the exeception. You 
should always use exceptions in your code and not errors.

Original comment by ebang...@gmail.com on 9 Aug 2011 at 1:45