When i initiate a class which does not exist , It throws the error, I Don't want to halted by that error . So i try trycatch
method , But it still giving me same error, Can someone explain why this error is not been catched
I tried
try{$obj = new classname();}
catch(Exception $e){ echo 'class does not exist, move on' ;}
Fatal error: Class 'classname' not found in C:\WampDeveloper\Websites\localhost\webroot\index.php on line 4
Can someone explain why this error can not be catched ?
Is their is another way to catch and handle this kind of errors ?
UPDATE
We can catch mysql
fatal errors by try catch method , So don't say fatal errors can not be handeled by try catch method