Exception in php use to control the errors(Exceptions) and throw a custom messages to user ,because of this state of code will remain same.Exception syntax in php as below :
try { code to handle the eceptions in this block }
catch
(exception type 1) { execute
this block to resolve exception type 1 }
catch
(exception type 2) { execute
this block to resolve exception type 2 }
and etc..
No comments:
Post a Comment