Welcome Guest, Not a member yet? Register   Sign In
Exceptions - displaying uncaught error messages... possible?
#1

[eluser]LeePR[/eluser]
I've been pulling my hair out over the weekend trying to figure out why my display_error settings in php.ini were being ignored. Now I've got an issue with exceptions...

I currently have my log_threshold set to 4 and have set error_reporting(E_ALL) in CodeIgniter.

Here's my problem... I have code like this:
Code:
$myObj = new Object();
$value = null;
$myObj->setName($value); // throws an exception
Line #3 throws an exception - of course, all I need to handle that is a try{} catch{} block, but is there any way to make CI tell me that I have an uncaught exception?!? Right now, I'm just getting a blank page. I come from a Java background - debugging/testing would be so much easier if I could make CI display uncaught exception in a manner similar to PHP warnings/notices.

Cheers,
Lee
#2

[eluser]Glen Swinfield[/eluser]
PHP does throw uncaught exception errors - so something else is wrong.

Can't help any more than that without further info I'm afraid.




Theme © iAndrew 2016 - Forum software by © MyBB