Best method in PHP for the Error Handling ? Convert all PHP errors (warnings notices etc) to exceptions?

Posted by user1179459 on Programmers See other posts from Programmers or by user1179459
Published on 2012-10-02T07:12:50Z Indexed on 2012/10/02 9:49 UTC
Read the original article Hit count: 208

What is the best method in PHP for the Error Handling ?

is there a way in PHP to Convert all PHP errors (warnings notices etc) to exceptions ?

what the best way/practise to error handling ?

again:

if we overuse exceptions (i.e. try/catch) in many situations, i think application will be halted unnecessary.

for a simple error checking we can use return false; but it may be cluttering the coding with many if else conditions.

what do you guys suggest ?

© Programmers or respective owner

Related posts about php

Related posts about exceptions