Also please provide the situation in which we handle them.
What is the difference between error handling and exception handling in PHP? please explain with an example?
error handling is accommodating a bug in the program, crash of the link, full disk when writing, etc.
exception handling is business logic "I'm a male, I've given birth to 3 kids".
Sorry, - I don't work with PHP.
I may stand corrected. here's a link for "exception Handling"
http://en.wikipedia.org/wiki/Exception_h...
Reply:I believe the answer is the opposite of the previous poster. Exceptions are something that can not be handled by your code, in PHP you would see something like "%26lt;condition%26gt; or die()"
An error is typically data entry type problems, as in "user error" that can be reacted to and responded to by the code.
flowers for algernon
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment