Posts Tagged ‘try and catch blocks’

multiple catch block in php

Saturday, November 1, 2008 9:56 No Comments

Some time there is a need to catch more than one exception..In such a situation, we can associate more than one catch statement with a try, When an exception is thrown, the exception handlers are searched in order for an appropriate match. The first handler that yields a match is executed. After executing the handler, [...]

This was posted under category: PHP Tags: , ,

try and catch block in php

Thursday, October 30, 2008 8:47 1 Comment

Exception handling is used to change the normal flow of the code execution if a specified error (exceptional) condition occurs. This condition is called an exception. Try block is used to try for the code to execute if any error like file unable to open etc.. It will stop the execution and it will throw [...]

This was posted under category: PHP, Programming Tags: , , ,