custom error handling
Posted: Mon Jan 07, 2008 6:06 am
Hello all.
I'm trying to build a custom error handling class, but there's something i'm probably missing.
if i set the error_reporting to: and inside my custom class i have:
i can still catch this error although i said to report everything unless E_NOTICE's.
Any way to prevent this ? I would only like to deal with error found in the mask.
I'm trying to build a custom error handling class, but there's something i'm probably missing.
if i set the error_reporting to:
Code: Select all
error_reporting(E_ALL^E_NOTICE)Code: Select all
..........
switch ($errno) {
case E_NOTICE:
echo "Caught a Notice:";
.......Any way to prevent this ? I would only like to deal with error found in the mask.