ini_set ('display_errors', 1);
error_reporting (E_ALL & ~E_NOTICE);
try
{
dothis();
}
catch(Exception $e)
{
echo $e->getMessage();
exit();
}
function dothis()
{
throw new exception("Not cool!");
}
?>
This block of code generates the error message:
"Fatal error: Uncaught exception 'Exception' with message 'Not cool!' in /home/goddess/public_html/except.php:18 Stack trace: #0 /home/goddess/public_html/except.php(8): dothis() #1 {main} thrown in /home/goddess/public_html/except.php on line 18"\
Why?? I clearly have a catch block set up...
2007-03-07
01:52:05
·
3 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design
I'm wondering if it's a problem with my code, or a problem with my server....
help!!!
2007-03-07
01:52:55 ·
update #1