Handing errors in my code using Exceptions |
(09-22-2015, 07:34 AM)mwhitney Wrote: If the exception isn't caught, none of the code after the try/catch block is likely to be executed, but the code in a finally block will be executed. If the exception is caught, but the catch block prevents the code after the try/catch from being executed (by throwing another exception or returning, for example), the finally block will still be executed (unless you use exit/die in the try/catch block). Thanks for the explanation !
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/ |
Messages In This Thread |
Handing errors in my code using Exceptions - by jLinux - 09-17-2015, 09:54 PM
RE: Handing errors in my code using Exceptions - by musheertm - 09-21-2015, 03:03 AM
RE: Handing errors in my code using Exceptions - by mwhitney - 09-21-2015, 07:30 AM
RE: Handing errors in my code using Exceptions - by includebeer - 09-21-2015, 03:55 PM
RE: Handing errors in my code using Exceptions - by jLinux - 09-21-2015, 04:21 PM
RE: Handing errors in my code using Exceptions - by mwhitney - 09-22-2015, 07:59 AM
RE: Handing errors in my code using Exceptions - by jLinux - 09-22-2015, 10:03 AM
RE: Handing errors in my code using Exceptions - by mwhitney - 09-28-2015, 09:16 AM
RE: Handing errors in my code using Exceptions - by mwhitney - 09-22-2015, 07:34 AM
RE: Handing errors in my code using Exceptions - by includebeer - 09-25-2015, 03:58 PM
RE: Handing errors in my code using Exceptions - by jLinux - 09-21-2015, 03:41 PM
|