exceptions thrown terminate the script?
Posted
by fayer
on Stack Overflow
See other posts from Stack Overflow
or by fayer
Published on 2010-05-09T07:30:15Z
Indexed on
2010/05/09
7:38 UTC
Read the original article
Hit count: 184
php
i wonder if exceptions that are thrown in php will terminate the script in php?
cause when i save an entry that is already created in doctrine it throws an exception.
i catch the exception and ignore it (so that the user won't see it) but the script seems to be terminated.
is there a way to catch the exception and keep the script alive?
thanks
© Stack Overflow or respective owner